File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,10 @@ impl CmakeBuilder {
209209 cmake_cfg. define ( "ASAN" , "1" ) ;
210210 }
211211
212+ if let Some ( linker) = option_env ( "AWS_LC_FIPS_SYS_CMAKE_LINKER" ) {
213+ cmake_cfg. define ( "CMAKE_LINKER" , linker) ;
214+ }
215+
212216 // Allow environment to specify CMake toolchain.
213217 if let Some ( toolchain) = option_env ( "CMAKE_TOOLCHAIN_FILE" ) . or ( option_env ( format ! (
214218 "CMAKE_TOOLCHAIN_FILE_{}" ,
Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ impl CmakeBuilder {
167167 CStdRequested :: None => { }
168168 }
169169
170+ if let Some ( linker) = option_env ( "AWS_LC_SYS_CMAKE_LINKER" ) {
171+ cmake_cfg. define ( "CMAKE_LINKER" , linker) ;
172+ }
173+
170174 if target_env ( ) == "ohos" {
171175 Self :: configure_open_harmony ( & mut cmake_cfg, get_crate_cflags ( ) ) ;
172176 return cmake_cfg;
You can’t perform that action at this time.
0 commit comments