Commit: 51ea75ce373adbf12ce6952f010fe35e5cd9a603
Parent: 22125aaf9b17882a2aa97575fc8289708d9cc488
Author: Randy Palamar
Date: Tue, 20 May 2025 14:56:51 -0600
build: enable ms-extensions when building with clang on w32
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/build.c b/build.c
@@ -428,6 +428,8 @@ cmd_base(Arena *a, Options *o)
if (o->debug) cmd_append(a, &result, "-O0", "-D_DEBUG", "-Wno-unused-function");
else cmd_append(a, &result, "-O3");
+ if (is_w32 && is_clang) cmd_append(a, &result, "-fms-extensions");
+
if (o->debug && is_unix) cmd_append(a, &result, "-ggdb");
if (o->sanitize) cmd_append(a, &result, "-fsanitize=address,undefined");