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>
This commit is contained in:
Emilio Cobos Álvarez 2018-02-19 01:40:48 +01:00
parent f5631d9ac7
commit e8a1575cf6
No known key found for this signature in database
GPG Key ID: 056B727BB9C1027C

View File

@ -50,6 +50,7 @@ fn main() {
cfg.flag("-fomit-frame-pointer");
cfg.flag("-ffreestanding");
cfg.define("VISIBILITY_HIDDEN", None);
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
}
for src in profile_sources {