diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn index 39848deabd4b..757d0b6de4d3 100644 --- a/llvm/utils/gn/build/BUILD.gn +++ b/llvm/utils/gn/build/BUILD.gn @@ -233,7 +233,9 @@ config("compiler_defaults") { "-fprofile-instr-generate=" + rebase_path("$root_build_dir/profiles/%4m.profraw"), ] - ldflags += [ "-fprofile-instr-generate" ] + if (host_os != "win") { + ldflags += [ "-fprofile-instr-generate" ] + } } # Deterministic build setup, see