Skip to content

Commit 1c5227f

Browse files
committed
Auto merge of rust-lang#75872 - mati865:pgo-tests, r=petrochenkov
Enable some of profiler tests on Windows-gnu CC rust-lang#61266 Because of force-push GitHub didn't let me reopen rust-lang#75184 Because of the GCC miscompilation, generated binaries either segfault or `.profraw` is malformed. Clang works fine but we can't use it on the CI. However we can still test the IR for the proper instrumentation so let's do it.
2 parents 47eca73 + 23fd531 commit 1c5227f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profiler_builtins/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ fn main() {
4848
// Turn off various features of gcc and such, mostly copying
4949
// compiler-rt's build system already
5050
cfg.flag("-fno-builtin");
51-
cfg.flag("-fvisibility=hidden");
5251
cfg.flag("-fomit-frame-pointer");
5352
cfg.define("VISIBILITY_HIDDEN", None);
5453
if !target.contains("windows") {
54+
cfg.flag("-fvisibility=hidden");
5555
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
5656
} else {
5757
profile_sources.push("WindowsMMap.c");

0 commit comments

Comments
 (0)