mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-02 07:50:31 +00:00
Introduce cosmocc flags -mdbg -mtiny -moptlinux
The cosmocc.zip toolchain will now include four builds of the libcosmo.a runtime libraries. You can pass the -mdbg flag if you want to debug your cosmopolitan runtime. You can pass the -moptlinux flag if you don't want windows code lurking in your binary. See tool/cosmocc/README.md for more details on how these flags may be used and their important implications.
This commit is contained in:
parent
59692b0882
commit
642e9cb91a
22 changed files with 404 additions and 56 deletions
4
third_party/nsync/futex.c
vendored
4
third_party/nsync/futex.c
vendored
|
@ -152,6 +152,7 @@ static int nsync_futex_wait_win32_ (atomic_int *w, int expect, char pshare,
|
|||
const struct timespec *timeout,
|
||||
struct PosixThread *pt,
|
||||
sigset_t waitmask) {
|
||||
#ifdef __x86_64__
|
||||
int sig;
|
||||
bool32 ok;
|
||||
struct timespec deadline, wait, now;
|
||||
|
@ -203,6 +204,9 @@ static int nsync_futex_wait_win32_ (atomic_int *w, int expect, char pshare,
|
|||
ASSERT (GetLastError () == ETIMEDOUT);
|
||||
}
|
||||
}
|
||||
#else
|
||||
return 0;
|
||||
#endif /* __x86_64__ */
|
||||
}
|
||||
|
||||
static struct timespec *nsync_futex_timeout_ (struct timespec *memory,
|
||||
|
|
2
third_party/python/BUILD.mk
vendored
2
third_party/python/BUILD.mk
vendored
|
@ -34,6 +34,7 @@ THIRD_PARTY_PYTHON_CHECKS = \
|
|||
|
||||
# TODO: Deal with aarch64 under qemu not making execve() easy.
|
||||
ifneq ($(MODE), dbg)
|
||||
ifneq ($(MODE), x86_64-dbg)
|
||||
ifeq ($(ARCH), x86_64)
|
||||
ifneq ($(UNAME_S), Windows)
|
||||
THIRD_PARTY_PYTHON_CHECKS += \
|
||||
|
@ -41,6 +42,7 @@ THIRD_PARTY_PYTHON_CHECKS += \
|
|||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
# STAGE ONE - BOOTSTRAPPING PYTHON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue