From 1260d5a44d26e1e1030461b88556c251ab8073a0 Mon Sep 17 00:00:00 2001 From: Xinyue Lu Date: Sun, 12 Nov 2023 17:29:12 -0800 Subject: [PATCH] NASM: suppress macro warnings --- source/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 6d8701805..cd7bc445e 100755 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -573,7 +573,7 @@ if((MSVC_IDE OR XCODE OR GCC) AND ENABLE_ASSEMBLY) list(APPEND ASM_OBJS ${ASM}.${SUFFIX}) add_custom_command( OUTPUT ${ASM}.${SUFFIX} - COMMAND ${NASM_EXECUTABLE} ARGS ${NASM_FLAGS} ${ASM_SRC} -o ${ASM}.${SUFFIX} + COMMAND ${NASM_EXECUTABLE} ARGS ${NASM_FLAGS} -w-macro-params-legacy -w-pp-macro-params-legacy ${ASM_SRC} -o ${ASM}.${SUFFIX} DEPENDS ${ASM_SRC}) endforeach() endif()