File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1637,7 +1637,7 @@ function(add_unittest test_suite test_name)
1637
1637
# The runtime benefits of LTO don't outweight the compile time costs for tests.
1638
1638
if(LLVM_ENABLE_LTO)
1639
1639
if((UNIX OR MINGW) AND LINKER_IS_LLD)
1640
- if(LLVM_ENABLE_FATLTO)
1640
+ if(LLVM_ENABLE_FATLTO AND NOT APPLE )
1641
1641
# When using FatLTO, just use relocatable linking.
1642
1642
set_property(TARGET ${test_name} APPEND_STRING PROPERTY
1643
1643
LINK_FLAGS " -Wl,--no-fat-lto-objects ")
Original file line number Diff line number Diff line change @@ -1282,7 +1282,7 @@ elseif(LLVM_ENABLE_LTO)
1282
1282
endif ()
1283
1283
endif ()
1284
1284
1285
- if (LLVM_ENABLE_FATLTO AND ( FUCHSIA OR UNIX ) )
1285
+ if (LLVM_ENABLE_FATLTO AND UNIX AND NOT APPLE )
1286
1286
append ("-ffat-lto-objects" CMAKE_C_FLAGS CMAKE_CXX_FLAGS )
1287
1287
if (NOT LINKER_IS_LLD_LINK )
1288
1288
append ("-ffat-lto-objects" CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS )
You can’t perform that action at this time.
0 commit comments