Skip to content

Commit 24c4fe3

Browse files
committed
Update cmake dep
1 parent 2cdd6c2 commit 24c4fe3

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

cmake/adjust_global_compile_flags.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ endif()
1919

2020
# Enable space optimization for gcc/clang
2121
# Cannot use "-ffunction-sections -fdata-sections" if we enable bitcode (iOS)
22-
#TODO: Paco: need to find out onnxruntime_ENABLE_BITCODE turns ON even it is set to OFF
23-
#if (NOT MSVC AND NOT onnxruntime_ENABLE_BITCODE)
24-
# string(APPEND CMAKE_CXX_FLAGS " -ffunction-sections -fdata-sections")
25-
# string(APPEND CMAKE_C_FLAGS " -ffunction-sections -fdata-sections")
26-
#endif()
22+
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")
25+
endif()
2726

2827
if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
2928
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s ALLOW_UNIMPLEMENTED_SYSCALLS=1 -s DEFAULT_TO_CXX=1")

cmake/deps.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ coremltools;https://github.com/apple/coremltools/archive/refs/tags/7.1.zip;f1bab
1717
cxxopts;https://github.com/jarro2783/cxxopts/archive/3c73d91c0b04e2b59462f0a741be8c07024c1bc0.zip;6c6ca7f8480b26c8d00476e0e24b7184717fe4f0
1818
date;https://github.com/HowardHinnant/date/archive/refs/tags/v3.0.1.zip;2dac0c81dc54ebdd8f8d073a75c053b04b56e159
1919
dlpack;https://github.com/dmlc/dlpack/archive/refs/tags/v0.6.zip;4d565dd2e5b31321e5549591d78aa7f377173445
20-
#flatbuffers;https://github.com/google/flatbuffers/archive/refs/tags/v1.12.0.zip;ba0a75fd12dbef8f6557a74e611b7a3d0c5fe7bf
21-
#flatbuffers;https://github.com/google/flatbuffers/archive/refs/tags/v22.12.6.zip;d01b5232ee52ed5ed05e84f4de01118d5ff8730d
2220
# This Eigen commit id matches the eigen archive being consumed from https://gitlab.com/libeigen/eigen/-/archive/3.4/eigen-3.4.zip
2321
# prior to the 3.4.1 RC changing the bits and invalidating the hash.
2422
# it contains changes on top of 3.4.0 which are required to fix build issues.

0 commit comments

Comments
 (0)