better fix for mac warning
This commit is contained in:
parent
ca5f5bbc3c
commit
1dc1154089
2
build.sh
2
build.sh
|
@ -11,7 +11,7 @@ os=$("./detect_os.sh")
|
||||||
if [[ "$os" == "linux" ]]; then
|
if [[ "$os" == "linux" ]]; then
|
||||||
WARNINGS="-Wno-write-strings -Wno-comment "
|
WARNINGS="-Wno-write-strings -Wno-comment "
|
||||||
elif [[ "$os" == "mac" ]]; then
|
elif [[ "$os" == "mac" ]]; then
|
||||||
WARNINGS="-Wno-comment -Wno-logical-op-parentheses -Wno-null-dereference -Wno-switch"
|
WARNINGS="-Wno-write-strings -Wno-comment -Wno-logical-op-parentheses -Wno-null-dereference -Wno-switch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE"
|
FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE"
|
||||||
|
|
|
@ -260,8 +260,7 @@ build_cl(u32 flags, char *code_path, char *code_file, char *out_path, char *out_
|
||||||
|
|
||||||
# define GCC_OPTS \
|
# define GCC_OPTS \
|
||||||
"-Wno-write-strings -Wno-deprecated-declarations " \
|
"-Wno-write-strings -Wno-deprecated-declarations " \
|
||||||
"-Wno-comment -Wno-switch -Wno-null-dereference " \
|
"-Wno-comment -Wno-switch -Wno-null-dereference "
|
||||||
"-Wno-c++11-compat-deprecated-writable-strings "
|
|
||||||
|
|
||||||
#define GCC_LIBS \
|
#define GCC_LIBS \
|
||||||
"-framework Cocoa -framework QuartzCore " \
|
"-framework Cocoa -framework QuartzCore " \
|
||||||
|
|
Loading…
Reference in New Issue