Skip to content

Commit

Permalink
Remove a hack in adjust_global_compile_flags.cmake (#23313)
Browse files Browse the repository at this point in the history
### Description

Remove a hack in adjust_global_compile_flags.cmake because the issue
should have been resolved.
  • Loading branch information
snnn authored Jan 11, 2025
1 parent 6e5efb5 commit b461f06
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmake/adjust_global_compile_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ if (ANDROID)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
endif()

# Suggested by https://gitlab.kitware.com/cmake/cmake/-/issues/20132
# MacCatalyst is not well supported in CMake
# The error that can emerge without this flag can look like:
# "clang : error : overriding '-mmacosx-version-min=11.0' option with '-target x86_64-apple-ios14.0-macabi' [-Werror,-Woverriding-t-option]"
if (PLATFORM_NAME STREQUAL "macabi")
add_compile_options(-Wno-overriding-t-option)
add_link_options(-Wno-overriding-t-option)
endif()

# Enable space optimization for gcc/clang
# Cannot use "-ffunction-sections -fdata-sections" if we enable bitcode (iOS)
if (NOT MSVC AND NOT onnxruntime_ENABLE_BITCODE)
Expand Down

0 comments on commit b461f06

Please sign in to comment.