summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-15 00:36:47 +0800
committerruki <[email protected]>2022-12-15 00:36:47 +0800
commit945deac4907a824c2eac2bd6741d0a8774049103 (patch)
tree287fcc6e04b00a949cad50ed70634b72bb9bd95f
parentf12120f9b0d6118df89b50217350d26ed9398496 (diff)
fix lz4 xmake.sh
-rwxr-xr-xcore/src/lz4/xmake.sh2
-rwxr-xr-xcore/xmake.sh8
2 files changed, 6 insertions, 4 deletions
diff --git a/core/src/lz4/xmake.sh b/core/src/lz4/xmake.sh
index 7e1a37deb..4b04f0a1d 100755
--- a/core/src/lz4/xmake.sh
+++ b/core/src/lz4/xmake.sh
@@ -3,7 +3,7 @@
target "lz4"
set_kind "static"
set_warnings "all"
- add_includedirs "lz4/lib" "{public = true}"
+ add_includedirs "lz4/lib" "{public}"
add_files "lz4/lib/lz4.c"
add_files "lz4/lib/lz4frame.c"
add_files "lz4/lib/lz4hc.c"
diff --git a/core/xmake.sh b/core/xmake.sh
index 63b81f82d..2cb211e58 100755
--- a/core/xmake.sh
+++ b/core/xmake.sh
@@ -3,8 +3,8 @@
set_project "xmake"
set_version "2.7.3" "%Y%m%d%H%M"
-# set warning all as error
-set_warnings "all" "error"
+# set warning all
+set_warnings "all"
# set language: c99
set_languages "c99"
@@ -13,7 +13,9 @@ set_languages "c99"
add_defines "_GNU_SOURCE=1" "_FILE_OFFSET_BITS=64" "_LARGEFILE_SOURCE"
# disable some compiler errors
-add_cxflags "-Wno-error=deprecated-declarations" "-fno-strict-aliasing" "-Wno-error=nullability-completeness" "-Wno-error=parentheses-equality"
+if is_plat "macosx"; then
+ add_cxflags "-Wno-error=deprecated-declarations" "-fno-strict-aliasing" "-Wno-error=nullability-completeness" "-Wno-error=parentheses-equality"
+fi
# add build modes
if is_mode "debug"; then