# The Windows programs carry their C runtime: vcruntime140.dll is not on every Windows (the # Visual C++ Redistributable brings it), and nothing else should have to be installed first. # (LNK4099: the static runtime's objects name Microsoft's own PDBs, which are not shipped; it # is about their debug info only.) [target.x86_64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static", "-C", "link-arg=/ignore:4099"] # GPUI's build compiles its manifest with embed-resource, which would take the dev shell's RC # (MinGW's windres, for the C cross-compiler) and make a COFF object of it; with llvm-rc it makes # a .res, which the linker merges with the app's icon (crates/ps-gui/build.rs). Two resource # objects it refuses. (A target/ from before this keeps GPUI's object: cargo clean -p gpui-pre.) # Building on Windows without llvm-rc: set RC_x86_64_pc_windows_msvc=rc.exe in the environment, # which this does not override. [env] RC_x86_64_pc_windows_msvc = "llvm-rc"