From 38f9024b4fdc1e390f333fe481f2ec9e9f549582 Mon Sep 17 00:00:00 2001 From: zapashcanon Date: Tue, 30 Jul 2024 16:38:55 +0200 Subject: [PATCH] more warnings when compiling our C stdlib --- src/libc/script.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libc/script.ml b/src/libc/script.ml index f6b827ab5..01a3789b7 100644 --- a/src/libc/script.ml +++ b/src/libc/script.ml @@ -14,8 +14,8 @@ let () = let out = Format.sprintf "%s.o" filename in let n = Format.ksprintf Sys.command - "clang -g -O3 -ffreestanding --no-standard-libraries --target=wasm32 \ - -c -m32 -Iinclude -Wno-int-conversion -Wno-return-type \ + "clang -O3 -ffreestanding --no-standard-libraries --target=wasm32 -c \ + -m32 -Iinclude -Wall -Werror -Wno-int-conversion -Wno-return-type \ -fbracket-depth=512 -DWANT_STRTOD_WITHOUT_LONG_DOUBLE -o %s %s" out c_filename in