Commit Graph

25 Commits

Author SHA1 Message Date
Thomas A
d905f55617 Fix implicit-function-declaration 2023-06-19 17:34:21 -07:00
Thomas A
4e83e2f6cd Fix Building 2023-05-03 10:02:12 -07:00
Thomas A
043772dde1 Reorganize Source Files And Added Source Files 2023-05-03 10:02:02 -07:00
Ariel Abreu
5bceb4b74b
Import and build tests from apple/swift-corelibs-libdispatch
They were imported from apple/swift-corelibs-libdispatch@34f383d344, so the tests are slightly newer than the actual libdispatch code, but that shouldn't be a problem.
2021-05-22 11:38:55 -04:00
Ariel Abreu
cc0856ab03
Disable queue narrowing (DISPATCH_USE_WORKQUEUE_NARROWING)
Leaving it on would require us to use HAVE_PTHREAD_WORKQUEUE_QOS.

This fixes some crashes in LLDB. It still doesn't work 100% as it does on master, but at least it doesn't crash unexpectedly now.
2020-12-15 19:06:16 -05:00
Ariel Abreu
54adbd19c8
Remove DISPATCH_DEBUG
I had forgotten to remove it from when I was debugging libdispatch
2020-11-17 23:20:12 -05:00
Ariel Abreu
5a12954d5d
Revert some CMakeLists changes 2020-10-26 23:56:42 -04:00
Ariel Abreu
847b953ee7
Temporary hacks for some crashes 2020-10-07 12:43:22 -04:00
Ariel Abreu
79decb5f98
Re-disable pthread QoS + other build fixes
Don't know what happened before; I had to enable pthread QoS to get it to build. Now, it works just fine with it disabled. It makes zero sense. I'm pretty sure I didn't change anything that should affect that. Whatever, I'll take the win.

In other news, I also fixed the build (failing with undefined symbols) by adding src/shims/yield.c and disabling an Objective-C class conditionally (that conditional really should be in the upstream sources as well, but it's not)
2020-06-16 11:31:07 -04:00
Ariel Abreu
7352a4eed9
Darling build of libdispatch-1173.60.1
Note: this *builds* but I'm not sure if it *runs*. Especially because of I had to enable a feature that was previously disabled in order to make it compile: kevent QoS.

P.S. to Apple: Would you mind making sure your code compiles for each "supported" configuration? Or otherwise just remove them entirely? Thanks.
2020-06-07 18:42:41 -04:00
Ariel Abreu
e22ad07e5a
Initial update to clean up include directories
"initial" because there might some additional modifications necessary later on
2020-05-14 12:57:41 -04:00
Lubos Dolezel
57c975b07c Use add_darling_static_library() 2020-04-17 23:23:28 +02:00
Thomas A
50157e1326 Remove __BLOCKS__ definition 2020-03-31 10:29:22 -07:00
Thomas A
f163271fc9 Remove redundant definitions 2020-03-30 15:44:48 -07:00
Sergey Bugaev
0b8c59cc65 Ensure libdispatch uses os/tsd.h 2019-04-27 00:17:51 +03:00
Andrew Hyatt
369f178528 Fix linker flags
There was an issue where a symbol that was created as an alias was
present in the final dylib but not the first pass dylib. Some
inspection of the circular library function found that the issue is
those flags were not having an effect on the first pass dylib
because they should be passed in as a parameter of the function.
2019-01-15 11:43:08 -05:00
Lubos Dolezel
ff68af8cb4 Fix a missing symbol problem for 'xcrun' 2018-07-27 01:08:32 +02:00
Lubos Dolezel
63577dd7f7 Fix build problem with Clang 4.0+ 2017-04-17 12:47:56 +02:00
Lubos Dolezel
f62afe0c66 More build changes for a working libdispatch 2017-04-16 18:22:31 +02:00
Lubos Dolezel
585f682857 Build changes to force old kernel workqueues SPI 2017-04-16 12:10:55 +02:00
Lubos Dolezel
16643d3d99 Build libdispatch properly, an order_file is required 2017-04-11 16:37:41 +02:00
Lubos Dolezel
1eae25267f Adapt build to updated libc++ 2017-03-27 20:49:07 +02:00
Lubos Dolezel
ef949fcd73 Updated header locations 2017-02-22 21:23:34 +01:00
Lubos Dolezel
317eea76c7 Fix dyld errors with upward linking 2017-01-30 21:59:30 +01:00
Lubos Dolezel
5c8f537d69 Darling build 2017-01-28 21:49:47 +01:00