From 092f4e2740a2e59a6b6c5aa064f59d9970790e23 Mon Sep 17 00:00:00 2001 From: grm Date: Sun, 2 Mar 2025 14:21:02 +0200 Subject: some archive --- src/archive/cxxflags | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/archive/cxxflags (limited to 'src/archive/cxxflags') diff --git a/src/archive/cxxflags b/src/archive/cxxflags new file mode 100644 index 0000000..bcff863 --- /dev/null +++ b/src/archive/cxxflags @@ -0,0 +1,22 @@ + +void cxxflags(B_Cmd *cmd) +{ + b_cmd_append(cmd, "-Wall", "-Wextra"); + b_cmd_append(cmd, "-Wno-string-plus-int", "-Wno-nullability-completeness", "-Wno-unused-function", "-Wno-missing-field-initializers", "-Wno-unused-parameter", "-Wno-unused-variable"); + + debug_or_release(cmd); + + b_cmd_append(cmd, "-march=native"); + b_cmd_append(cmd, "-fno-math-errno", "-funroll-loops"); + b_cmd_append(cmd, "-flto", "-pthread"); + + inlcude_dirs(cmd); + //b_cmd_append(cmd, "-O3"); +} + +void cxx(B_Cmd *cmd) +{ + b_cmd_append(cmd, "clang"); + cxxflags(cmd); +} + -- cgit v1.2.3