You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DEVELOPMENT.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,28 @@ To compile and run locally:
53
53
54
54
8. Execute the binary with the config file with `sudo ./target/debug/newrelic-agent-control`
55
55
56
+
#### Cross-compilation for Windows
57
+
58
+
The steps below work for the `x86_64-pc-windows-msvc` target only. It is also possible to compile the project for the `x86_64-pc-windows-gnu` target using `cargo-zigbuild`.
59
+
60
+
1. Install the [Rust toolchain](https://www.rust-lang.org/tools/install): `rustup target add x86_64-pc-windows-msvc`
61
+
2. Install [cargo-xwin](https://github.com/rust-cross/cargo-xwin) and dependencies.
⚠️ This method doesn't work for building debug binaries (`--release` is required). As `cargo-xwin` doesn't provide `msvcrtd.lib` (the debug version of the C runtime library).
76
+
77
+
56
78
#### Filesystem layout and persistence
57
79
58
80
The following shows the directory structure used by Agent Control, assuming an existing sub-agent with the ID `newrelic-infra`:
0 commit comments