-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not define pthread-related macros for zig windows-gnu build
(fix of commit 2666e3e) PR #598 (bdwgc). Zig windows-gnu target is MinGW-based build. In this case pthreads library is not used by bdwgc. * build.zig [enable_threads] (build): Move GC_THREADS and PARALLEL_MARK macros definition upper; add TODO item about Cygwin; add gc_dlopen.c, specific.c to source_files only if t.os.tag!=.windows; define _REENTRANT, HANDLE_FORK, GC_USESIGRT_SIGNALS macros only if t.os.tag!=.windows; do not add threadkeytest to tests if t.os.tag==.windows. * build.zig (build): Set have_getcontext to false if t.os.tag==.windows. * build.zig (build): Do not define HAVE_DLADDR macro if t.os.tag==.windows. * build.zig [install_headers && enable_threads] (build): Do not install gc_pthread_redirects.h if t.os.tag!=.windows.
- Loading branch information
Showing
1 changed file
with
62 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters