Skip to content

Commit

Permalink
Script working on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Feb 26, 2024
1 parent fc03b84 commit c9b3518
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions aws-lc-sys/builder/cmake_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,15 @@ impl CmakeBuilder {
cmake_cfg.define("CMAKE_OSX_ARCHITECTURES", "arm64");
}
}
if Some(true) == env_var_to_bool("AWS_LC_SYS_CC_TOML_GENERATOR")
&& target_vendor() == "apple"
{
cmake_cfg.define(
"CMAKE_C_FLAGS",
"-ginline-line-tables -grecord-gcc-switches",
);
if Some(true) == env_var_to_bool("AWS_LC_SYS_CC_TOML_GENERATOR") {
if target_vendor() == "apple" {
cmake_cfg.define(
"CMAKE_C_FLAGS",
"-ginline-line-tables -grecord-gcc-switches",
);
} else if target_os() == "linux" {
cmake_cfg.define("CMAKE_C_FLAGS", "-grecord-gcc-switches");
}
}

if cfg!(feature = "asan") {
Expand Down

0 comments on commit c9b3518

Please sign in to comment.