forked from OSchip/llvm-project
[gn] Don't pass -fprofile-instr-generate to linker on Windows
Avoids a warning from the linker. The user still has to put the resource directory on the linker search path, and I can't find a clean way to do that automatically in gn.
This commit is contained in:
parent
85394d9ed7
commit
5ba4a0e890
|
@ -233,7 +233,9 @@ config("compiler_defaults") {
|
||||||
"-fprofile-instr-generate=" +
|
"-fprofile-instr-generate=" +
|
||||||
rebase_path("$root_build_dir/profiles/%4m.profraw"),
|
rebase_path("$root_build_dir/profiles/%4m.profraw"),
|
||||||
]
|
]
|
||||||
ldflags += [ "-fprofile-instr-generate" ]
|
if (host_os != "win") {
|
||||||
|
ldflags += [ "-fprofile-instr-generate" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Deterministic build setup, see
|
# Deterministic build setup, see
|
||||||
|
|
Loading…
Reference in New Issue