Skip to content

Commit e2255b6

Browse files
authored
[5.8][CMake] Don't add an extraneous rpath to the swift-frontend (#66122)
Cherrypick of #64103 __Explanation__: The 5.8 release has an incorrect relative runpath added to the compiler on linux, the second one: ``` > readelf -d swift-5.8-RELEASE-ubuntu20.04/usr/bin/swift-frontend | ag runpath 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/../lib/swift/linux:$ORIGIN/../../lib/swift/linux] This pull fixes that, removing a mild security risk when running the compiler. ``` __Scope__: Only affects the compiler runpath on linux __Issue__: None __Risk__: low, as it only removes an unused runpath for the linux compiler __Testing__: Passed all CI on trunk __Reviewer__: @edymtt
2 parents 052c9a4 + d73e44a commit e2255b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/driver/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ target_link_libraries(swift-frontend
6868

6969
add_swift_parser_link_libraries(swift-frontend)
7070

71-
_add_swift_runtime_link_flags(swift-frontend "../../lib" "")
72-
7371
# Create a `swift-driver` executable adjacent to the `swift-frontend` executable
7472
# to ensure that `swiftc` forwards to the standalone driver when invoked.
7573
swift_create_early_driver_copies(swift-frontend)

0 commit comments

Comments
 (0)