@@ -19,7 +19,7 @@ fn main() { |
|
|
19 |
19 |
|
20 |
20 |
// FIXME: `rerun-if-changed` directives are not currently emitted and the build script |
21 |
21 |
// will not rerun on changes in these source files or headers included into them. |
22 |
|
-let mut profile_sources = vec![ |
|
22 |
+let profile_sources = vec![ |
23 |
23 |
// tidy-alphabetical-start |
24 |
24 |
"GCDAProfiling.c", |
25 |
25 |
"InstrProfiling.c", |
@@ -40,13 +40,13 @@ fn main() { |
|
|
40 |
40 |
"InstrProfilingValue.c", |
41 |
41 |
"InstrProfilingVersionVar.c", |
42 |
42 |
"InstrProfilingWriter.c", |
|
43 |
+"WindowsMMap.c", |
43 |
44 |
// tidy-alphabetical-end |
44 |
45 |
]; |
45 |
46 |
|
46 |
47 |
if target_env == "msvc" { |
47 |
48 |
// Don't pull in extra libraries on MSVC |
48 |
49 |
cfg.flag("/Zl"); |
49 |
|
- profile_sources.push("WindowsMMap.c"); |
50 |
50 |
cfg.define("strdup", Some("_strdup")); |
51 |
51 |
cfg.define("open", Some("_open")); |
52 |
52 |
cfg.define("fdopen", Some("_fdopen")); |
@@ -61,8 +61,6 @@ fn main() { |
|
|
61 |
61 |
if target_os != "windows" { |
62 |
62 |
cfg.flag("-fvisibility=hidden"); |
63 |
63 |
cfg.define("COMPILER_RT_HAS_UNAME", Some("1")); |
64 |
|
-} else { |
65 |
|
- profile_sources.push("WindowsMMap.c"); |
66 |
64 |
} |
67 |
65 |
} |
68 |
66 |
|