Skip to content

Commit 9ed0fd9

Browse files
authored
Revert "Enable -pie compile option for MacOS (#18568)" (#30299)
This reverts commit 37d055e. ### Details: ```bash clang++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] ``` `-pie` is enable by default on `macOS` and this flag is not supported: - swiftlang/swift#48291 (comment) - https://hg-edge.mozilla.org/integration/autoland/rev/6087ce1bca59 ### Tickets: - N/A
1 parent cf4a031 commit 9ed0fd9

File tree

1 file changed

+3
-2
lines changed
  • cmake/developer_package/compile_flags

1 file changed

+3
-2
lines changed

cmake/developer_package/compile_flags/sdl.cmake

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG OR (UNIX AND OV_COMPILER_IS_
1414
set(OV_C_CXX_FLAGS "${OV_C_CXX_FLAGS} -D_FORTIFY_SOURCE=2")
1515
endif()
1616
endif()
17-
18-
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -pie")
17+
if(NOT APPLE)
18+
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -pie")
19+
endif()
1920

2021
if(CMAKE_COMPILER_IS_GNUCXX)
2122
set(OV_C_CXX_FLAGS "${OV_C_CXX_FLAGS} -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv")

0 commit comments

Comments
 (0)