From b37d49af67bf67cf9e480295bb1f556e35aa6d07 Mon Sep 17 00:00:00 2001 From: Philipp Doerner Date: Wed, 10 Jan 2024 19:16:15 +0100 Subject: [PATCH] #55 Attempt to use clang on windows with special case for i386 i386 is a 32bit platform. Clang by default is 64bit. It should be as simple as just requiring clang to build in 32bit mode with -m32. --- tests/nim.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/nim.cfg b/tests/nim.cfg index 4f61e49..b65e936 100644 --- a/tests/nim.cfg +++ b/tests/nim.cfg @@ -2,9 +2,13 @@ --gc:arc --threads:on --define:useMalloc +--cc:clang @if not windows: - --cc:clang --debugger:native --passc:"-fsanitize=thread -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" --passl:"-fsanitize=thread -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" +@end +@if windows and i386: + --passc:"-m32" + --passl:"-m32" @end \ No newline at end of file