Skip to content

Commit b461f06

Browse files
authored
Remove a hack in adjust_global_compile_flags.cmake (#23313)
### Description Remove a hack in adjust_global_compile_flags.cmake because the issue should have been resolved.
1 parent 6e5efb5 commit b461f06

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cmake/adjust_global_compile_flags.cmake

-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ if (ANDROID)
1212
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
1313
endif()
1414

15-
# Suggested by https://gitlab.kitware.com/cmake/cmake/-/issues/20132
16-
# MacCatalyst is not well supported in CMake
17-
# The error that can emerge without this flag can look like:
18-
# "clang : error : overriding '-mmacosx-version-min=11.0' option with '-target x86_64-apple-ios14.0-macabi' [-Werror,-Woverriding-t-option]"
19-
if (PLATFORM_NAME STREQUAL "macabi")
20-
add_compile_options(-Wno-overriding-t-option)
21-
add_link_options(-Wno-overriding-t-option)
22-
endif()
23-
2415
# Enable space optimization for gcc/clang
2516
# Cannot use "-ffunction-sections -fdata-sections" if we enable bitcode (iOS)
2617
if (NOT MSVC AND NOT onnxruntime_ENABLE_BITCODE)

0 commit comments

Comments
 (0)