From 3573814e4530982c547d73d93e2bb1f704c01558 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 3 Mar 2021 13:38:30 -0800 Subject: [PATCH] Change release process to use default mode See #101 --- README.md | 7 ++++--- test/libc/release/smoke.c | 1 + test/libc/release/test.mk | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ec2c81d36..d0a5fa43a 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,11 @@ If you're doing your development work on Linux or BSD then you need just five files to get started: ```sh -wget https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-0.2.zip -unzip cosmopolitan-amalgamation-0.2.zip +wget https://justine.lol/cosmopolitan/cosmopolitan.zip +unzip cosmopolitan.zip printf 'main() { printf("hello world\\n"); }\n' >hello.c -gcc -g -O -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \ +gcc -g -Og -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \ + -fno-omit-frame-pointer -pg -mnop-mcount \ -o hello.com.dbg hello.c -fuse-ld=bfd -Wl,-T,ape.lds \ -include cosmopolitan.h crt.o ape.o cosmopolitan.a objcopy -S -O binary hello.com.dbg hello.com diff --git a/test/libc/release/smoke.c b/test/libc/release/smoke.c index f3c97563d..2fca2b6ce 100644 --- a/test/libc/release/smoke.c +++ b/test/libc/release/smoke.c @@ -2,6 +2,7 @@ int main(int argc, char *argv[]) { int rc; char *s; FILE *f; + showcrashreports(); s = strdup(argv[0]); s[0] = 'Z'; f = fopen("/dev/null", "w"); diff --git a/test/libc/release/test.mk b/test/libc/release/test.mk index 3760d47a5..724424691 100644 --- a/test/libc/release/test.mk +++ b/test/libc/release/test.mk @@ -29,6 +29,7 @@ o/$(MODE)/test/libc/release/smoke.com.dbg: \ -nostdlib \ -nostdinc \ -mno-red-zone \ + -fno-omit-frame-pointer \ -Wl,-T,o/$(MODE)/ape/ape.lds \ -include o/cosmopolitan.h \ test/libc/release/smoke.c \ @@ -56,6 +57,7 @@ o/$(MODE)/test/libc/release/smokecxx.com.dbg: \ -nostdlib \ -nostdinc \ -mno-red-zone \ + -fno-omit-frame-pointer \ -Wl,-T,o/$(MODE)/ape/ape.lds \ -include o/cosmopolitan.h \ test/libc/release/smokecxx.cc \ @@ -80,6 +82,7 @@ o/$(MODE)/test/libc/release/smokeansi.com.dbg: \ -nostdlib \ -nostdinc \ -mno-red-zone \ + -fno-omit-frame-pointer \ -Wl,-T,o/$(MODE)/ape/ape.lds \ -include o/cosmopolitan.h \ test/libc/release/smoke.c \