Skip to content

Commit ec93867

Browse files
Jarred-Sumnerclaude
andcommitted
Fix ARM64 Windows build to use single-source compilation
clang/lld-link cannot link against DLL directly - it needs an import library. Use single-source build for ARM64 to avoid this issue. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7d0cea5 commit ec93867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

win32/build-tcc.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ goto :p3
119119
:tarm64
120120
set D=%DARM64%
121121
set P=%PARM64%
122+
@rem ARM64 with clang: use single-source build (lld-link can't link DLL directly)
123+
set TCC_C=..\tcc.c
122124
goto :p3
123125

124126
:p3

0 commit comments

Comments
 (0)