Skip to content

Commit dea2fc9

Browse files
committed
github: Pass -D__USE_MINGW_ANSI_STDIO=1 for test-llvm on x86
This is required for properly formatting long doubles on x86 with UCRT (which doesn't use the mingw builtin printfs by default). This fixes running the LLVM testsuite on x86 after commit 9bf7d04c4386daf1ef0acf95782a59855c98474a in llvm-project.
1 parent 0d59f0f commit dea2fc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/test-llvm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
-DLLVM_WINDOWS_PREFER_FORWARD_SLASH=OFF `
9393
-DCMAKE_C_COMPILER=clang `
9494
-DCMAKE_CXX_COMPILER=clang++ `
95+
-DCMAKE_CXX_FLAGS="-D__USE_MINGW_ANSI_STDIO=${{startsWith(matrix.arch, 'a') && '0' || '1'}}" `
9596
-DLLVM_LIT_ARGS="-v --time-tests"
9697
ninja test-depends
9798
cp c:\llvm-mingw\bin\libc++.dll bin

0 commit comments

Comments
 (0)