Skip to content

Commit

Permalink
Update build.rs unix family includes linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancinsight authored Dec 6, 2024
1 parent a2373d8 commit e4270b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snmalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ fn configure_platform(config: &mut BuildConfig) {
.define("CMAKE_CXX_FLAGS_RELEASE", "/O2 /Ob2 /DNDEBUG /EHsc")
.define("CMAKE_C_FLAGS_RELEASE", "/O2 /Ob2 /DNDEBUG /EHsc");
}
_ if config.is_linux() || config.is_unix() => {
_ if config.is_unix() => {
let unix_flags = vec!["-fPIC", "-pthread", "-fno-exceptions", "-fno-rtti", "-mcx16", "-Wno-unused-parameter"];
for flag in unix_flags {
config.builder.flag_if_supported(flag);
Expand Down

0 comments on commit e4270b6

Please sign in to comment.