From d20cf21b20559b3974a9dcadfe79bb047bfaab16 Mon Sep 17 00:00:00 2001 From: Zhiqing Xie Date: Thu, 25 Jul 2024 10:25:01 +0800 Subject: [PATCH] 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) --- Configurations/50-win-clang-cl.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Configurations/50-win-clang-cl.conf b/Configurations/50-win-clang-cl.conf index cfc96ef159c01..6ddcc5c21e32f 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",