mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-29 05:50:27 +00:00
Make spinlocks faster (take two)
This change is green on x86 and arm test fleet.
This commit is contained in:
parent
02e1cbcd00
commit
59692b0882
14 changed files with 122 additions and 79 deletions
|
@ -47,7 +47,7 @@ log_command() {
|
|||
ORIGINAL="$0 $*"
|
||||
PLATFORM="-D__COSMOPOLITAN__ -D__COSMOCC__"
|
||||
PREDEF="-include libc/integral/normalize.inc"
|
||||
CFLAGS="-fportcosmo -fno-dwarf2-cfi-asm -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-semantic-interposition -Wno-implicit-int"
|
||||
CFLAGS="-fportcosmo -fno-dwarf2-cfi-asm -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-semantic-interposition"
|
||||
CPPFLAGS="-fno-pie -nostdinc -isystem $BIN/../include"
|
||||
LDFLAGS="-static -no-pie -nostdlib -fuse-ld=bfd -Wl,-z,noexecstack"
|
||||
APEFLAGS="-Wl,--gc-sections"
|
||||
|
@ -73,6 +73,8 @@ if [ x"$PROG" != x"${PROG%++}" ]; then
|
|||
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -fuse-cxa-atexit"
|
||||
CPPFLAGS="-isystem $BIN/../include/third_party/libcxx $CPPFLAGS"
|
||||
LDLIBS="-lcxx $LDLIBS"
|
||||
else
|
||||
CFLAGS="$CFLAGS -Wno-implicit-int"
|
||||
fi
|
||||
|
||||
PAGESZ=4096
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue