From: Michel Zou Date: Thu, 22 Oct 2020 21:29:35 +0000 (+0200) Subject: Add an option to disable MASM X-Git-Tag: upstream/v1.2.179~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d912af509eeba4788871ad98b0780f09ee5736d;p=platform%2Fupstream%2FVulkan-Loader.git Add an option to disable MASM MASM generally goes with msvc, but it is not necessarily available with MinGW. --- diff --git a/BUILD.md b/BUILD.md index 8ccf7907..098ce88c 100644 --- a/BUILD.md +++ b/BUILD.md @@ -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: diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index d86e25b2..6983c93c 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -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})