Skip to content

Commit e8a1575

Browse files
committed
profiler-builtins: define COMPILER_RT_HAS_UNAME on non-msvc platforms.
Otherwise lprofGetHostName, used by the PGO generator, won't be available. This means that PGO and coverage profiling would be restricted to systems with uname, but that seems acceptable. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
1 parent f5631d9 commit e8a1575

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libprofiler_builtins/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fn main() {
5050
cfg.flag("-fomit-frame-pointer");
5151
cfg.flag("-ffreestanding");
5252
cfg.define("VISIBILITY_HIDDEN", None);
53+
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
5354
}
5455

5556
for src in profile_sources {

0 commit comments

Comments
 (0)