Skip to content

Commit

Permalink
Don't link to curses library explicitly
Browse files Browse the repository at this point in the history
LLVM build system has been fixed to pass down this linker flag automatically.


Swift SVN r7048
  • Loading branch information
gribozavr committed Aug 8, 2013
1 parent ac80171 commit 5a88513
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions tools/sil-opt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ find_library(CORE_FOUNDATION NAMES CoreFoundation)

target_link_libraries(sil-opt edit ${CORE_FOUNDATION})

target_link_libraries(sil-opt curses)

install(TARGETS sil-opt
RUNTIME DESTINATION bin)
2 changes: 0 additions & 2 deletions tools/swift-demangle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ add_swift_executable(swift-demangle
DEPENDS swiftBasic
COMPONENT_DEPENDS support ${LLVM_TARGETS_TO_BUILD})

target_link_libraries(swift-demangle curses)

install(TARGETS swift-demangle
RUNTIME DESTINATION bin)
3 changes: 1 addition & 2 deletions tools/swift-demangle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ LINK_COMPONENTS := support
USEDLIBS = swiftBasic.a

LLVMLibsOptions := \
$(LLVMLibsOptions) \
-lcurses
$(LLVMLibsOptions)

include $(SWIFT_LEVEL)/Makefile

2 changes: 0 additions & 2 deletions tools/swift-ide-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ if(HAVE_DARWIN_MODULES_SDK)
-DSWIFT_MODULE_CACHE_PATH="${SWIFT_MODULE_CACHE_PATH}" )
endif()

target_link_libraries(swift-ide-test curses)

install(TARGETS swift-ide-test
RUNTIME DESTINATION bin)

2 changes: 0 additions & 2 deletions tools/swift/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ if(HAVE_DARWIN_MODULES_SDK)
-DSWIFT_MODULE_CACHE_PATH="${SWIFT_MODULE_CACHE_PATH}" )
endif()

target_link_libraries(swift curses)

install(TARGETS swift
RUNTIME DESTINATION bin)
1 change: 0 additions & 1 deletion unittests/Basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ add_swift_unittest(SwiftBasicTests
SourceManager.cpp
TreeScopedHashTableTests.cpp
)
target_link_libraries(SwiftBasicTests curses)
1 change: 0 additions & 1 deletion unittests/IDE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ add_swift_unittest(SwiftIDETests
CodeCompletionToken.cpp
)
target_link_libraries(SwiftIDETests
curses
swiftIDE
)
llvm_config(SwiftIDETests bitreader bitwriter support ${LLVM_TARGETS_TO_BUILD})
2 changes: 1 addition & 1 deletion unittests/Parse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ add_swift_unittest(SwiftParseTests
)

target_link_libraries(SwiftParseTests
curses swiftParse swiftSIL swiftSema swiftClangImporter
swiftParse swiftSIL swiftSema swiftClangImporter
)
1 change: 0 additions & 1 deletion unittests/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ add_swift_unittest(SwiftRuntimeTests
find_library(FOUNDATION_LIBRARY Foundation)

target_link_libraries(SwiftRuntimeTests
curses
swift_runtime
${FOUNDATION_LIBRARY}
)

0 comments on commit 5a88513

Please sign in to comment.