From: Zhiqing Xie Date: Thu, 25 Jul 2024 02:25:01 +0000 (+0800) Subject: Fix compile err when building VC-CLANG-WIN64-CLANGASM-ARM target X-Git-Tag: openssl-3.1.8~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=665016a9910c9e8e506992cd0d4ed632be59ab52;p=thirdparty%2Fopenssl.git Fix compile err when building VC-CLANG-WIN64-CLANGASM-ARM target 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 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25293) (cherry picked from commit d20cf21b20559b3974a9dcadfe79bb047bfaab16) --- diff --git a/Configurations/50-win-clang-cl.conf b/Configurations/50-win-clang-cl.conf index cfc96ef159c..6ddcc5c21e3 100644 --- a/Configurations/50-win-clang-cl.conf +++ b/Configurations/50-win-clang-cl.conf @@ -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",