mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +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
|
@ -83,11 +83,6 @@ const char *FindDebugBinary(void) {
|
|||
if (IsMyDebugBinary(buf)) {
|
||||
res = buf;
|
||||
}
|
||||
} else if (n + 8 < ARRAYLEN(buf)) {
|
||||
mempcpy(mempcpy(buf, p, n), ".com.dbg", 9);
|
||||
if (IsMyDebugBinary(buf)) {
|
||||
res = buf;
|
||||
}
|
||||
}
|
||||
if (!res) {
|
||||
res = getenv("COMDBG");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue