File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,10 @@ endif()
19
19
20
20
# Enable space optimization for gcc/clang
21
21
# 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 ()
27
26
28
27
if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten" )
29
28
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s ALLOW_UNIMPLEMENTED_SYSCALLS=1 -s DEFAULT_TO_CXX=1" )
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ coremltools;https://github.com/apple/coremltools/archive/refs/tags/7.1.zip;f1bab
17
17
cxxopts;https://github.com/jarro2783/cxxopts/archive/3c73d91c0b04e2b59462f0a741be8c07024c1bc0.zip;6c6ca7f8480b26c8d00476e0e24b7184717fe4f0
18
18
date;https://github.com/HowardHinnant/date/archive/refs/tags/v3.0.1.zip;2dac0c81dc54ebdd8f8d073a75c053b04b56e159
19
19
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
22
20
# This Eigen commit id matches the eigen archive being consumed from https://gitlab.com/libeigen/eigen/-/archive/3.4/eigen-3.4.zip
23
21
# prior to the 3.4.1 RC changing the bits and invalidating the hash.
24
22
# it contains changes on top of 3.4.0 which are required to fix build issues.
You can’t perform that action at this time.
0 commit comments