-
Notifications
You must be signed in to change notification settings - Fork 471
Fixes for C-level build of libdispatch on Linux #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
|
||
include(SwiftSupport) | ||
|
||
set(dispatch_DTRACE_HEADERS) | ||
if(dtrace_EXECUTABLE) | ||
list(APPEND dispatch_DTRACE_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/provider.h) | ||
add_custom_command( | ||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/provider.h | ||
COMMAND ${dtrace_EXECUTABLE} -h -s ${CMAKE_CURRENT_SOURCE_DIR}/provider.d -o ${header} ${CMAKE_CURRENT_BINARY_DIR}/provider.h | ||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/provider.d | ||
) | ||
endif() | ||
|
||
add_library(dispatch | ||
${dispatch_DTRACE_HEADERS} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
allocator.c | ||
apply.c | ||
benchmark.c | ||
|
@@ -106,6 +117,7 @@ endif() | |
target_include_directories(dispatch | ||
PRIVATE | ||
${CMAKE_BINARY_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${CMAKE_SOURCE_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_SOURCE_DIR}/private) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ function(add_unit_test name) | |
COMMAND bsdtestharness $<TARGET_FILE:${name}>) | ||
set_tests_properties(${name} | ||
PROPERTIES | ||
TIMEOUT 30 | ||
TIMEOUT 600 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ill leave this to @das to figure out. The old timeout used to be 30s. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right. 30 is not long enough. Swift CI machines get very loaded. I'm seeing dispatch_select routinely take 40 or 50 seconds. |
||
DEPENDS bsdtestharness | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) | ||
if(NOT leaks_EXECUTABLE) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to default to the shared libraries first? We can, I went with the defaults of auto tools, which was static by default.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need the shared libraries when building to include in Swift. For me at least, autotools/libtool was defaulting to shared libs before. libtool called the linker script libdispatch.a, but what it really was building was .libs/libdisaptch.so