We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3728f18 commit e8b6dd0Copy full SHA for e8b6dd0
aws-lc-sys/builder/cc_builder.rs
@@ -391,6 +391,8 @@ impl CcBuilder {
391
let mut new_cflags = original_cflags.clone();
392
// The `_FORTIFY_SOURCE` macro often requires optimizations to also be enabled, so unset it.
393
new_cflags.push_str(" -O0 -Wp,-U_FORTIFY_SOURCE");
394
+ // Certain MacOS system headers are guarded by _POSIX_C_SOURCE and _DARWIN_C_SOURCE
395
+ new_cflags.push_str(" -D_DARWIN_C_SOURCE");
396
set_env_for_target("CFLAGS", &new_cflags);
397
// cc-rs currently prioritizes flags provided by CFLAGS over the flags provided by the build script.
398
// The environment variables used by the compiler are set when `get_compiler` is called.
0 commit comments