Add an option to disable MASM

MASM generally goes with msvc, but it is not necessarily available with MinGW.
This commit is contained in:
Michel Zou
2020-10-22 23:29:35 +02:00
committed by Lenny Komow
parent c768fa91d0
commit c5b9dbc07e
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -174,6 +174,7 @@ on/off options currently supported by this repository:
| BUILD_WSI_DIRECTFB_SUPPORT | Linux | `OFF` | Build the loader with the DirectFB entry points enabled. Without this, the DirectFB headers should not be needed, but the extension `VK_EXT_directfb_surface` won't be available. |
| ENABLE_WIN10_ONECORE | Windows | `OFF` | Link the loader to the [OneCore](https://msdn.microsoft.com/en-us/library/windows/desktop/mt654039.aspx) umbrella library, instead of the standard Win32 ones. |
| USE_CCACHE | Linux | `OFF` | Enable caching with the CCache program. |
| USE_MASM | Windows | `ON` | Controls whether to build assembly files with MS assembler, else fallback to C code |
| BUILD_STATIC_LOADER | macOS | `OFF` | This allows the loader to be built as a static library on macOS. Not tested, use at your own risk. |
The following is a table of all string options currently supported by this repository:
+4 -1
View File
@@ -147,7 +147,10 @@ if(WIN32)
endif()
endif()
endif()
enable_language(ASM_MASM)
option(USE_MASM "Use MASM" ON)
if (USE_MASM)
enable_language(ASM_MASM)
endif ()
if(CMAKE_ASM_MASM_COMPILER_WORKS OR JWASM_FOUND)
if(MINGW)
set(CMAKE_ASM_MASM_FLAGS ${CMAKE_ASM_MASM_FLAGS} ${JWASM_FLAGS})