From 945deac4907a824c2eac2bd6741d0a8774049103 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 15 Dec 2022 00:36:47 +0800 Subject: fix lz4 xmake.sh --- core/src/lz4/xmake.sh | 2 +- core/xmake.sh | 8 +++++--- 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 -- cgit v1.3.1