summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/make.sh
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-05-21 23:30:25 +0200
committerTyge Lovset <[email protected]>2023-05-21 23:30:25 +0200
commit0b34cadda2bc4da1cb0904989c8a5f2fe0236358 (patch)
tree038335539ecd9363fbfc70a850a340b291a10888 /misc/examples/make.sh
parent56b0884044610861866a1a27fb64276411604986 (diff)
downloadSTC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.tar.gz
STC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.zip
NB! Made cstr.h header-only by default. Now requires #define i_static, i_implement or i_extern (includes utf8code.c) to implement non-inline functions (or link with libstc).
Diffstat (limited to 'misc/examples/make.sh')
-rwxr-xr-xmisc/examples/make.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/make.sh b/misc/examples/make.sh
index ee8d2267..25b720b8 100755
--- a/misc/examples/make.sh
+++ b/misc/examples/make.sh
@@ -6,7 +6,7 @@ if [ "$(uname)" = 'Linux' ]; then
oflag='-o '
fi
-cc=gcc; cflags="-s -O3 -std=c99 -Wall -Wextra -Wpedantic -Wconversion -Wwrite-strings -Wdouble-promotion -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-missing-field-initializers"
+cc=gcc; cflags="-DSTC_STATIC -s -O3 -std=c99 -Wall -Wextra -Wpedantic -Wconversion -Wwrite-strings -Wdouble-promotion -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-missing-field-initializers"
#cc=gcc; cflags="-g -std=c99 -Werror -Wfatal-errors -Wpedantic -Wall $sanitize"
#cc=tcc; cflags="-Wall -std=c99"
#cc=clang; cflags="-s -O2 -std=c99 -Werror -Wfatal-errors -Wpedantic -Wall -Wno-unused-function -Wsign-compare -Wwrite-strings"