]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix compile err when building VC-CLANG-WIN64-CLANGASM-ARM target
authorZhiqing Xie <quic_zhiqxie@quicinc.com>
Thu, 25 Jul 2024 02:25:01 +0000 (10:25 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 29 Aug 2024 13:38:57 +0000 (15:38 +0200)
The error happens with MSVC v143,C++ Clang Compiler for Windows(16.0.5)

Error is "brackets expression not supported on this target" in libcrypto-shlib-bsaes-armv8.obj.asm

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25293)

Configurations/50-win-clang-cl.conf

index cfc96ef159c011b009ca31642d39a6853aa4ee6b..6ddcc5c21e32f9f1c4c4bed760594e89c88b60ec 100644 (file)
@@ -25,8 +25,9 @@ my %targets = (
         bn_ops          => "SIXTY_FOUR_BIT RC4_CHAR",
         multilib        => "-arm64",
         asm_arch        => "aarch64",
+        CFLAGS        => add("--target=arm64-pc-windows-msvc"),
         AS        => "clang-cl.exe",
-        ASFLAGS   => "/nologo /Zi",
+        ASFLAGS   => "/nologo /Zi --target=arm64-pc-windows-msvc",
         asflags   => "/c",
         asoutflag => "/Fo",
         perlasm_scheme => "win64",