Skip to content

Commit 0120264

Browse files
authored
[ATfE] Fix AArch64 LLVM-libc sample on Windows (arm#510)
I forgot an `-lm` in the Windows build script, add that.
1 parent 627b347 commit 0120264

File tree

1 file changed

+1
-1
lines changed
  • arm-software/embedded/llvmlibc-samples/src/baremetal-semihosting-aarch64-llvmlibc

1 file changed

+1
-1
lines changed

arm-software/embedded/llvmlibc-samples/src/baremetal-semihosting-aarch64-llvmlibc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ if exist hello.img del /q hello.img
4040
@exit /B 1
4141

4242
:build_fn
43-
%BIN_PATH%\clang.exe --config=llvmlibc.cfg --target=aarch64-none-elf -nostartfiles -lcrt0-semihost -lsemihost -g -T ..\..\ldscripts\llvmlibc-raspi3b.ld -o hello.elf hello.c
43+
%BIN_PATH%\clang.exe --config=llvmlibc.cfg --target=aarch64-none-elf -nostartfiles -lcrt0-semihost -lsemihost -lm -g -T ..\..\ldscripts\llvmlibc-raspi3b.ld -o hello.elf hello.c
4444
%BIN_PATH%\llvm-objcopy.exe -O binary hello.elf hello.img
4545
@exit /B

0 commit comments

Comments
 (0)