diff --git a/build.sh b/build.sh index abfaf3d..a4d812f 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,7 @@ cd "$(dirname "$0")" mkdir build pushd build +echo "clang ../src/meta/build_tool.c -ldl -o build_tool.exe -g -fdiagnostics-absolute-paths -Wsingle-bit-bitfield-constant-conversion" clang ../src/meta/build_tool.c -ldl -o build_tool.exe -g -fdiagnostics-absolute-paths -Wsingle-bit-bitfield-constant-conversion popd diff --git a/src/meta/build_tool.c b/src/meta/build_tool.c index 41b277b..3a83a1d 100644 --- a/src/meta/build_tool.c +++ b/src/meta/build_tool.c @@ -5156,9 +5156,9 @@ int main(int argument_count, char **arguments) { if (S8_AreEqual(cc, S8_Lit("cl"), false)) { result = os_systemf("cl \"%.*s\" -nologo -Zi -WX -W3 -wd4200 -diagnostics:column /Fe:%.*s /Fd:%.*s.pdb", S8_Expand(build_file), S8_Expand(exe_name), S8_Expand(name_no_ext)); } else if (S8_AreEqual(cc, S8_Lit("clang"), false)) { - result = os_systemf("clang \"%.*s\" -o %.*s -ldl -g -fdiagnostics-absolute-paths -Wno-writable-strings %s", S8_Expand(build_file), S8_Expand(exe_name), IF_LINUX_ELSE("-lm", "")); + result = os_systemf("clang \"%.*s\" -o %.*s -ldl -g -Wsingle-bit-bitfield-constant-conversion -fdiagnostics-absolute-paths -Wno-writable-strings %s", S8_Expand(build_file), S8_Expand(exe_name), IF_LINUX_ELSE("-lm", "")); } else { - result = os_systemf("gcc \"%.*s\" -o %.*s -ldl -g -Wno-write-strings %s", S8_Expand(build_file), S8_Expand(exe_name), IF_LINUX_ELSE("-lm", "")); + result = os_systemf("gcc \"%.*s\" -o %.*s -ldl -g -Wsingle-bit-bitfield-constant-conversion -Wno-write-strings %s", S8_Expand(build_file), S8_Expand(exe_name), IF_LINUX_ELSE("-lm", "")); } if (result != 0) {