Skip to content

Commit d8b475e

Browse files
authored
Update adjust_global_compile_flags.cmake
1 parent 03ba474 commit d8b475e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/adjust_global_compile_flags.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ endif()
2020
# Enable space optimization for gcc/clang
2121
# Cannot use "-ffunction-sections -fdata-sections" if we enable bitcode (iOS)
2222
if (NOT MSVC AND NOT onnxruntime_ENABLE_BITCODE)
23-
string(APPEND CMAKE_CXX_FLAGS " -ffunction-sections -fdata-sections")
24-
string(APPEND CMAKE_C_FLAGS " -ffunction-sections -fdata-sections")
23+
string(APPEND CMAKE_CXX_FLAGS " -ffunction-sections -fdata-sections")
24+
string(APPEND CMAKE_C_FLAGS " -ffunction-sections -fdata-sections")
2525
endif()
2626

2727
if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")

0 commit comments

Comments
 (0)