mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
Fix distribute.sh script to generate cosmopolitan.h
This commit is contained in:
parent
5ffeaa8e33
commit
b099a5a778
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
rm -f o/ansi/.cosmopolitan.h o/ansi/cosmopolitan.h
|
rm -f o/.cosmopolitan.h o/cosmopolitan.h
|
||||||
make -j12 o/ansi/cosmopolitan.h MODE=ansi
|
make -j12 o/cosmopolitan.h
|
||||||
make -j12 o//libc/crt/crt.o o//ape/ape.o o//ape/ape.lds
|
make -j12 o//libc/crt/crt.o o//ape/ape.o o//ape/ape.lds
|
||||||
make -j12 o//cosmopolitan.a
|
make -j12 o//cosmopolitan.a
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ cp o//ape/ape.o \
|
||||||
echo '#ifdef __cplusplus'
|
echo '#ifdef __cplusplus'
|
||||||
echo 'extern "C" {'
|
echo 'extern "C" {'
|
||||||
echo '#endif'
|
echo '#endif'
|
||||||
cat o/ansi/cosmopolitan.h
|
cat o/cosmopolitan.h
|
||||||
echo '#ifdef __cplusplus'
|
echo '#ifdef __cplusplus'
|
||||||
echo '} /* extern C */'
|
echo '} /* extern C */'
|
||||||
echo '#endif'
|
echo '#endif'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue