From 29da5d67e1ed310fe288f093d055d4b81ecc2a17 Mon Sep 17 00:00:00 2001 From: Xiaoqiang Wang Date: Sat, 13 May 2023 21:37:29 +0200 Subject: [PATCH] add win32-x86-clang and windows-x64-clang targets --- configure/os/CONFIG.Common.win32-x86-clang | 18 ++++++++++++++++++ configure/os/CONFIG.Common.windows-x64-clang | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 configure/os/CONFIG.Common.win32-x86-clang create mode 100644 configure/os/CONFIG.Common.windows-x64-clang diff --git a/configure/os/CONFIG.Common.win32-x86-clang b/configure/os/CONFIG.Common.win32-x86-clang new file mode 100644 index 000000000..ecde48366 --- /dev/null +++ b/configure/os/CONFIG.Common.win32-x86-clang @@ -0,0 +1,18 @@ +# CONFIG.Common.win32-x86-clang +# +# Definitions for win32-x86-clang target build +# Override these definitions in CONFIG_SITE.Common.win32-x86-clang +#------------------------------------------------------- + +#Include definitions common to msvc compiler +include $(CONFIG)/CONFIG.msvcCommon + +VALID_BUILDS = Ioc Host Command + +# Override CONFIG.msvcCommon settings: +LLVM_PREFIX = llvm- +CC = clang-cl$(LLVM_SUFFIX) --target=i686-pc-windows-msvc +WINLINK = lld-link$(LLVM_SUFFIX) + +# clang-cl does not support /GL option +OPT_WHOLE_PROGRAM = NO diff --git a/configure/os/CONFIG.Common.windows-x64-clang b/configure/os/CONFIG.Common.windows-x64-clang new file mode 100644 index 000000000..2bb2fa80d --- /dev/null +++ b/configure/os/CONFIG.Common.windows-x64-clang @@ -0,0 +1,11 @@ +# CONFIG.Common.windows-x64-clang +# +# Definitions for windows-x64-clang target builds +# Sites may override these definitions in CONFIG_SITE.Common.windows-x64-clang +#------------------------------------------------------- + +#Include definitions common to win32-x86-clang builds +include $(CONFIG)/os/CONFIG.Common.win32-x86-clang + +# Override CONFIG.Common.win32-x86-clang settings: +CC = clang-cl$(LLVM_SUFFIX) --target=x86_64-pc-windows-msvc