From 35677f50e4eb8ecb5aabe70e6ce900e28fd0adc2 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 25 Jan 2025 00:59:17 +0800 Subject: [PATCH] move has_flags.lua --- tests/apis/custom_toolchain/3 | Bin 0 -> 4606 bytes .../{detect => core}/tools/cl6x/has_flags.lua | 2 +- .../{detect => core}/tools/ar/has_flags.lua | 2 +- .../core/tools/armasm64_msvc/has_flags.lua | 23 ++++++++++++++++++ .../tools/armasm_msvc/has_flags.lua | 2 +- .../tools/armclang/has_flags.lua | 2 +- .../icl => core/tools/circle}/has_flags.lua | 2 +- .../{detect => core}/tools/cl/cfeatures.lua | 0 .../{detect => core}/tools/cl/cxxfeatures.lua | 0 .../{detect => core}/tools/cl/features.lua | 0 .../{detect => core}/tools/cl/has_flags.lua | 2 +- .../ml64 => core/tools/cl2000}/has_flags.lua | 2 +- .../{detect => core}/tools/cl6x/has_flags.lua | 2 +- .../tools/clang/cfeatures.lua | 2 +- .../tools/clang/cxxfeatures.lua | 2 +- .../{detect => core}/tools/clang/features.lua | 2 +- .../tools/clang}/has_flags.lua | 2 +- .../tools/clang_cl/has_flags.lua | 2 +- .../nvc => core/tools/clangxx}/features.lua | 2 +- .../tools/clangxx}/has_flags.lua | 2 +- .../tools/cosmocc/has_flags.lua | 2 +- .../tools/cosmocxx}/has_flags.lua | 2 +- .../{detect => core}/tools/dmd/has_flags.lua | 2 +- .../tools/dpcpp/cfeatures.lua | 2 +- .../tools/dpcpp/cxxfeatures.lua | 2 +- xmake/modules/core/tools/dpcpp/features.lua | 22 +++++++++++++++++ .../circle => core/tools/dpcpp}/has_flags.lua | 2 +- xmake/modules/core/tools/emcc/has_flags.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/emxx/has_flags.lua | 23 ++++++++++++++++++ .../{detect => core}/tools/fpc/has_flags.lua | 2 +- .../{detect => core}/tools/gcc/cfeatures.lua | 0 .../tools/gcc/cxxfeatures.lua | 0 .../{detect => core}/tools/gcc/features.lua | 0 .../{detect => core}/tools/gcc/has_flags.lua | 2 +- xmake/modules/core/tools/gccgo/has_flags.lua | 23 ++++++++++++++++++ .../{detect => core}/tools/gdc/has_flags.lua | 2 +- .../tools/gfortran/has_flags.lua | 2 +- .../{detect => core}/tools/go/has_flags.lua | 2 +- .../{detect => core}/tools/gxx/features.lua | 2 +- xmake/modules/core/tools/gxx/has_flags.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/icc/has_flags.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/icl/has_flags.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/icpc/has_flags.lua | 23 ++++++++++++++++++ .../clangxx => core/tools/icpx}/features.lua | 2 +- .../emcc => core/tools/icpx}/has_flags.lua | 2 +- .../{detect => core}/tools/icx/cfeatures.lua | 2 +- .../tools/icx/cxxfeatures.lua | 2 +- xmake/modules/core/tools/icx/features.lua | 22 +++++++++++++++++ xmake/modules/core/tools/icx/has_flags.lua | 23 ++++++++++++++++++ .../tools/ifort/has_flags.lua | 4 +-- xmake/modules/core/tools/ifx/has_flags.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/ldc2/has_flags.lua | 23 ++++++++++++++++++ .../{detect => core}/tools/link/has_flags.lua | 2 +- .../{detect => core}/tools/ml/has_flags.lua | 2 +- xmake/modules/core/tools/ml64/has_flags.lua | 23 ++++++++++++++++++ .../{detect => core}/tools/nim/has_flags.lua | 2 +- .../nvcxx => core/tools/nvc}/features.lua | 2 +- xmake/modules/core/tools/nvc/has_flags.lua | 23 ++++++++++++++++++ .../{detect => core}/tools/nvcc/has_flags.lua | 2 +- xmake/modules/core/tools/nvcxx/features.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/nvcxx/has_flags.lua | 23 ++++++++++++++++++ .../core/tools/nvfortran/has_flags.lua | 23 ++++++++++++++++++ .../{detect => core}/tools/rc/has_flags.lua | 2 +- .../tools/rustc/has_flags.lua | 2 +- .../{detect => core}/tools/sdcc/has_flags.lua | 2 +- .../core/tools/swift_frontend/has_flags.lua | 22 +++++++++++++++++ .../tools/swiftc/has_flags.lua | 2 +- xmake/modules/core/tools/tcc/has_flags.lua | 23 ++++++++++++++++++ .../{detect => core}/tools/zig/has_flags.lua | 2 +- xmake/modules/core/tools/zig_cc/features.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/zig_cc/has_flags.lua | 23 ++++++++++++++++++ xmake/modules/core/tools/zig_cxx/features.lua | 23 ++++++++++++++++++ .../modules/core/tools/zig_cxx/has_flags.lua | 23 ++++++++++++++++++ .../detect/tools/armasm64_msvc/has_flags.lua | 23 ------------------ .../detect/tools/cosmocxx/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/dpcpp/features.lua | 22 ----------------- .../modules/detect/tools/dpcpp/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/emxx/has_flags.lua | 23 ------------------ .../modules/detect/tools/gccgo/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/gxx/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/icc/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/icpc/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/icpx/features.lua | 23 ------------------ xmake/modules/detect/tools/icpx/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/icx/features.lua | 22 ----------------- xmake/modules/detect/tools/icx/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/ifx/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/ldc2/has_flags.lua | 23 ------------------ xmake/modules/detect/tools/nvc/has_flags.lua | 23 ------------------ .../modules/detect/tools/nvcxx/has_flags.lua | 23 ------------------ .../detect/tools/nvfortran/has_flags.lua | 23 ------------------ .../detect/tools/swift_frontend/has_flags.lua | 22 ----------------- xmake/modules/detect/tools/tcc/has_flags.lua | 23 ------------------ .../modules/detect/tools/zig_cc/features.lua | 23 ------------------ .../modules/detect/tools/zig_cc/has_flags.lua | 23 ------------------ .../modules/detect/tools/zig_cxx/features.lua | 23 ------------------ .../detect/tools/zig_cxx/has_flags.lua | 23 ------------------ xmake/modules/lib/detect/features.lua | 4 +-- xmake/modules/lib/detect/has_flags.lua | 4 +-- 99 files changed, 596 insertions(+), 596 deletions(-) create mode 100644 tests/apis/custom_toolchain/3 rename tests/apis/custom_toolchain/toolchains/modules/{detect => core}/tools/cl6x/has_flags.lua (97%) rename xmake/modules/{detect => core}/tools/ar/has_flags.lua (98%) create mode 100644 xmake/modules/core/tools/armasm64_msvc/has_flags.lua rename xmake/modules/{detect => core}/tools/armasm_msvc/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/armclang/has_flags.lua (97%) rename xmake/modules/{detect/tools/icl => core/tools/circle}/has_flags.lua (95%) rename xmake/modules/{detect => core}/tools/cl/cfeatures.lua (100%) rename xmake/modules/{detect => core}/tools/cl/cxxfeatures.lua (100%) rename xmake/modules/{detect => core}/tools/cl/features.lua (100%) rename xmake/modules/{detect => core}/tools/cl/has_flags.lua (98%) rename xmake/modules/{detect/tools/ml64 => core/tools/cl2000}/has_flags.lua (95%) rename xmake/modules/{detect => core}/tools/cl6x/has_flags.lua (97%) rename xmake/modules/{detect => core}/tools/clang/cfeatures.lua (97%) rename xmake/modules/{detect => core}/tools/clang/cxxfeatures.lua (99%) rename xmake/modules/{detect => core}/tools/clang/features.lua (96%) rename xmake/modules/{detect/tools/clangxx => core/tools/clang}/has_flags.lua (95%) rename xmake/modules/{detect => core}/tools/clang_cl/has_flags.lua (98%) rename xmake/modules/{detect/tools/nvc => core/tools/clangxx}/features.lua (95%) rename xmake/modules/{detect/tools/clang => core/tools/clangxx}/has_flags.lua (95%) rename xmake/modules/{detect => core}/tools/cosmocc/has_flags.lua (98%) rename xmake/modules/{detect/tools/cl2000 => core/tools/cosmocxx}/has_flags.lua (94%) rename xmake/modules/{detect => core}/tools/dmd/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/dpcpp/cfeatures.lua (94%) rename xmake/modules/{detect => core}/tools/dpcpp/cxxfeatures.lua (94%) create mode 100644 xmake/modules/core/tools/dpcpp/features.lua rename xmake/modules/{detect/tools/circle => core/tools/dpcpp}/has_flags.lua (95%) create mode 100644 xmake/modules/core/tools/emcc/has_flags.lua create mode 100644 xmake/modules/core/tools/emxx/has_flags.lua rename xmake/modules/{detect => core}/tools/fpc/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/gcc/cfeatures.lua (100%) rename xmake/modules/{detect => core}/tools/gcc/cxxfeatures.lua (100%) rename xmake/modules/{detect => core}/tools/gcc/features.lua (100%) rename xmake/modules/{detect => core}/tools/gcc/has_flags.lua (98%) create mode 100644 xmake/modules/core/tools/gccgo/has_flags.lua rename xmake/modules/{detect => core}/tools/gdc/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/gfortran/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/go/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/gxx/features.lua (95%) create mode 100644 xmake/modules/core/tools/gxx/has_flags.lua create mode 100644 xmake/modules/core/tools/icc/has_flags.lua create mode 100644 xmake/modules/core/tools/icl/has_flags.lua create mode 100644 xmake/modules/core/tools/icpc/has_flags.lua rename xmake/modules/{detect/tools/clangxx => core/tools/icpx}/features.lua (95%) rename xmake/modules/{detect/tools/emcc => core/tools/icpx}/has_flags.lua (95%) rename xmake/modules/{detect => core}/tools/icx/cfeatures.lua (94%) rename xmake/modules/{detect => core}/tools/icx/cxxfeatures.lua (94%) create mode 100644 xmake/modules/core/tools/icx/features.lua create mode 100644 xmake/modules/core/tools/icx/has_flags.lua rename xmake/modules/{detect => core}/tools/ifort/has_flags.lua (89%) create mode 100644 xmake/modules/core/tools/ifx/has_flags.lua create mode 100644 xmake/modules/core/tools/ldc2/has_flags.lua rename xmake/modules/{detect => core}/tools/link/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/ml/has_flags.lua (98%) create mode 100644 xmake/modules/core/tools/ml64/has_flags.lua rename xmake/modules/{detect => core}/tools/nim/has_flags.lua (98%) rename xmake/modules/{detect/tools/nvcxx => core/tools/nvc}/features.lua (95%) create mode 100644 xmake/modules/core/tools/nvc/has_flags.lua rename xmake/modules/{detect => core}/tools/nvcc/has_flags.lua (99%) create mode 100644 xmake/modules/core/tools/nvcxx/features.lua create mode 100644 xmake/modules/core/tools/nvcxx/has_flags.lua create mode 100644 xmake/modules/core/tools/nvfortran/has_flags.lua rename xmake/modules/{detect => core}/tools/rc/has_flags.lua (97%) rename xmake/modules/{detect => core}/tools/rustc/has_flags.lua (98%) rename xmake/modules/{detect => core}/tools/sdcc/has_flags.lua (98%) create mode 100644 xmake/modules/core/tools/swift_frontend/has_flags.lua rename xmake/modules/{detect => core}/tools/swiftc/has_flags.lua (98%) create mode 100644 xmake/modules/core/tools/tcc/has_flags.lua rename xmake/modules/{detect => core}/tools/zig/has_flags.lua (98%) create mode 100644 xmake/modules/core/tools/zig_cc/features.lua create mode 100644 xmake/modules/core/tools/zig_cc/has_flags.lua create mode 100644 xmake/modules/core/tools/zig_cxx/features.lua create mode 100644 xmake/modules/core/tools/zig_cxx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/armasm64_msvc/has_flags.lua delete mode 100644 xmake/modules/detect/tools/cosmocxx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/dpcpp/features.lua delete mode 100644 xmake/modules/detect/tools/dpcpp/has_flags.lua delete mode 100644 xmake/modules/detect/tools/emxx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/gccgo/has_flags.lua delete mode 100644 xmake/modules/detect/tools/gxx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/icc/has_flags.lua delete mode 100644 xmake/modules/detect/tools/icpc/has_flags.lua delete mode 100644 xmake/modules/detect/tools/icpx/features.lua delete mode 100644 xmake/modules/detect/tools/icpx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/icx/features.lua delete mode 100644 xmake/modules/detect/tools/icx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/ifx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/ldc2/has_flags.lua delete mode 100644 xmake/modules/detect/tools/nvc/has_flags.lua delete mode 100644 xmake/modules/detect/tools/nvcxx/has_flags.lua delete mode 100644 xmake/modules/detect/tools/nvfortran/has_flags.lua delete mode 100644 xmake/modules/detect/tools/swift_frontend/has_flags.lua delete mode 100644 xmake/modules/detect/tools/tcc/has_flags.lua delete mode 100644 xmake/modules/detect/tools/zig_cc/features.lua delete mode 100644 xmake/modules/detect/tools/zig_cc/has_flags.lua delete mode 100644 xmake/modules/detect/tools/zig_cxx/features.lua delete mode 100644 xmake/modules/detect/tools/zig_cxx/has_flags.lua diff --git a/tests/apis/custom_toolchain/3 b/tests/apis/custom_toolchain/3 new file mode 100644 index 0000000000000000000000000000000000000000..51405a6f161e8681d5d30b2570bb55a389c3b084 GIT binary patch literal 4606 zcmeHL&2!sC6ko|o;;Gw#4i}hqrh=xB7V5-Gnl#X_UHKzw; zY558rZoPPh6E{x$0UUbb#0)163>R+PxbZhYd2d%r2S%;WcT;p{`UQzb~oF+ z{z#JKhv#26e>z6UBq8J^NgV%%B&EA2z!+#MSjo`yb8KcD@b^;85yIDDM1DGOb^;jH z@CSyWZFfYt({VM>See$Q^w}L%=%`iC-BGva(lcpoM%DfH)hmbls-sG*po55NTBDc>|85@(5?FfXJgtcf;=h z7}+OTz-#caQ%In!2lM`V1x$@i8e!CjUlbhkkw#Fau{;f8LBiHs%$V+ zaT%&SWL#yFag`S1DqD=Jc-ay#{0j7PU(NI3?UIhxJ4TtCr;U6W?eQgHpP?Dhk^Aq` z3@FL{_h<&RaWkNqki+n%wdWDY#LyQZC&TYfU@$tG*G5H4GFqZH; z7niFhjzubXOEk-Q%Xyj=o>HDx1-h9p3Q#WOO9iq2m24Q;Ea!OKs#(z&G2$%%3kX)I zIHFZ!kssk&IRv+}OVuJW?o>pwcMGM(HHw~lh!~>#rkJyg5Ik54ft?d6)N&%LI%L9g zZ)A&=0kTy7(@^(B+%?wWelij0S4GrMY)bNZfVlY3T+ z=ANg;J$jzYZixj^aF3fSk?D)sD3!LDjm(dW`EstnuU03^3RcCW{Cv8se8bA|BMTN* zSZNBS@f&;GLbQ#DU&cp>H1zEt;urk!@~vEXk*=ZlNlCX#<>fr$PiVNEpPFL#J~MRz zKF{XF)_;-BnXs{m{vVQVdPyQLjzAA1wgZ1v!_)-$WpWDoA>`<_ z#>E)sH8PztpazhSONr#`qi>{6B+n$DU4!BxF-{W6RO)EzSn3LxiZBt5JpEE4@{t6T z8KcL66fPJjv2cSDB1bM2b@8$aE1{vBSSf`i&rnXRe8P%t7zZ_@l4+E4uxL8iqB3cW zbFff4*s#jM_V)`ynj8(Tx(vQZi%;_|@(A@!7@}4C96T;;gOSgHN91z}P!tDwqM;`N z@kHd)FdY0e;e(6TZ#Ih{#Sr*2@I|li9 z4H!ja;Qwbh=uIIo*