Skip to content

Commit 2f766ec

Browse files
committed
Revert "[Linux] Enable build-ids. (swiftlang#4995)"
This reverts commit f186ff8. This is incorrectly being applied to Windows builds as well.
1 parent 238130a commit 2f766ec

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ FetchContent_MakeAvailable(SwiftFoundationICU SwiftFoundation)
9898
include(CheckLinkerFlag)
9999
include(CheckSymbolExists)
100100

101-
check_linker_flag(C "LINKER:--build-id=sha1" LINKER_SUPPORTS_BUILD_ID)
102-
103101
# Detect if the system libc defines symbols for these functions.
104102
# If it is not availble, swift-corelibs-foundation has its own implementations
105103
# that will be used. If it is available, it should not redefine them.

Sources/Foundation/CMakeLists.txt

-4
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,5 @@ if(dispatch_FOUND)
175175
swiftDispatch)
176176
endif()
177177

178-
if(LINKER_SUPPORTS_BUILD_ID)
179-
target_link_options(Foundation PRIVATE "LINKER:--build-id=sha1")
180-
endif()
181-
182178
set_property(GLOBAL APPEND PROPERTY Foundation_EXPORTS Foundation)
183179
_foundation_install_target(Foundation)

Sources/FoundationNetworking/CMakeLists.txt

-4
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,5 @@ set_target_properties(FoundationNetworking PROPERTIES
7777
INSTALL_RPATH "$ORIGIN"
7878
INSTALL_REMOVE_ENVIRONMENT_RPATH ON)
7979

80-
if(LINKER_SUPPORTS_BUILD_ID)
81-
target_link_options(FoundationNetworking PRIVATE "LINKER:--build-id=sha1")
82-
endif()
83-
8480
set_property(GLOBAL APPEND PROPERTY Foundation_EXPORTS FoundationNetworking)
8581
_foundation_install_target(FoundationNetworking)

Sources/FoundationXML/CMakeLists.txt

-4
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,5 @@ set_target_properties(FoundationXML PROPERTIES
5050
INSTALL_RPATH "$ORIGIN"
5151
INSTALL_REMOVE_ENVIRONMENT_RPATH ON)
5252

53-
if(LINKER_SUPPORTS_BUILD_ID)
54-
target_link_options(FoundationXML PRIVATE "LINKER:--build-id=sha1")
55-
endif()
56-
5753
set_property(GLOBAL APPEND PROPERTY Foundation_EXPORTS FoundationXML)
5854
_foundation_install_target(FoundationXML)

0 commit comments

Comments
 (0)