Skip to content

Commit bec1d86

Browse files
authored
[CMake][Support] Use /nologo when compiling BLAKE3 assembly sources on Windows (#106794)
Suppresses the copyright banner for `ml64` compiling BLAKE3 assembly sources with MSVC and Ninja on Windows: ``` [157/3758] Building ASM_MASM object lib\Support\BLAKE3\CMa...upportBlake3.dir\blake3_avx512_x86-64_windows_msvc.asm.obj Microsoft (R) Macro Assembler (x64) Version 14.41.34120.0 Copyright (C) Microsoft Corporation. All rights reserved. Assembling: C:\path\to\llvm-project\llvm\lib\Support\BLAKE3\blake3_avx512_x86-64_windows_msvc.asm ``` is now just: ``` Assembling: C:\path\to\llvm-project\llvm\lib\Support\BLAKE3\blake3_avx512_x86-64_windows_msvc.asm ``` We can suppress that last line with `/quiet` in more recent versions of `ml64` (from MSVC 2022 17.6) but it is not supported by all potential MASM compilers.
1 parent 840d4d9 commit bec1d86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/Support/BLAKE3/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ if (CAN_USE_ASSEMBLER)
2828
check_symbol_exists(_M_X64 "" IS_X64)
2929
if (IS_X64)
3030
enable_language(ASM_MASM)
31-
list(APPEND LLVM_BLAKE3_FILES
31+
set(LLVM_BLAKE3_ASM_FILES
3232
blake3_sse2_x86-64_windows_msvc.asm
3333
blake3_sse41_x86-64_windows_msvc.asm
3434
blake3_avx2_x86-64_windows_msvc.asm
3535
blake3_avx512_x86-64_windows_msvc.asm
3636
)
37+
list(APPEND LLVM_BLAKE3_FILES ${LLVM_BLAKE3_ASM_FILES})
38+
# Supress the copyright message.
39+
set_source_files_properties(${LLVM_BLAKE3_ASM_FILES}
40+
PROPERTIES COMPILE_OPTIONS "/nologo")
3741
else()
3842
disable_blake3_x86_simd()
3943
endif()

0 commit comments

Comments
 (0)