mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 12:18:31 +00:00
Improve cosmocc / cosmoc++ toolchain scripts
- Get out of the red zone - Generate --ftrace nops unless -Os is passed - Intercept -o path to generate .com / .com.dbg appropriately
This commit is contained in:
parent
25678db2a0
commit
22f81a8d50
9 changed files with 207 additions and 127 deletions
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_W_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_W_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -11,8 +10,8 @@ extern const int WCONTINUED;
|
|||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define WNOHANG LITERALLY(1)
|
||||
#define WUNTRACED SYMBOLIC(WUNTRACED)
|
||||
#define WCONTINUED SYMBOLIC(WCONTINUED)
|
||||
#define WNOHANG 1
|
||||
#define WUNTRACED WUNTRACED
|
||||
#define WCONTINUED WCONTINUED
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_W_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue