mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Updated build script in an attempt to track down a segfault. It's not helping, though.
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
WARNINGS_DISABLE="-Wno-attributes -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
|
release_mode=0
|
||||||
LIBRARIES="-pthread -ldl -lm"
|
|
||||||
|
|
||||||
gcc src/main.c ${WARNINGS_DISABLE} ${LIBRARIES} -o odin
|
warnings_to_disable="-Wno-attributes -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
|
||||||
|
libraries="-pthread -ldl -lm"
|
||||||
|
other_args=""
|
||||||
|
|
||||||
|
if [ "$release_mode" -eq "0" ]; then
|
||||||
|
other_args="${other_args} -g -fno-inline-functions -fno-inline-small-functions"
|
||||||
|
fi
|
||||||
|
|
||||||
|
gcc src/main.c ${warnings_to_disable} ${libraries} ${other_args} -o odin
|
||||||
|
|||||||
Reference in New Issue
Block a user