summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
Diffstat (limited to 'cross')
-rw-r--r--cross/i686-w64-mingw32.txt11
-rw-r--r--cross/x86_64-w64-clang-cl.txt (renamed from cross/x86_64-w64-msvc-clang.txt)11
-rw-r--r--cross/x86_64-w64-mingw32.txt5
3 files changed, 21 insertions, 6 deletions
diff --git a/cross/i686-w64-mingw32.txt b/cross/i686-w64-mingw32.txt
index 159c662..361578e 100644
--- a/cross/i686-w64-mingw32.txt
+++ b/cross/i686-w64-mingw32.txt
@@ -1,17 +1,22 @@
+# See x86_64-w64-mingw32.txt for references.
+
[binaries]
c = 'i686-w64-mingw32-gcc'
cpp = 'i686-w64-mingw32-g++'
-ar = 'i686-w64-mingw32-ar'
+ar = 'i686-w64-mingw32-gcc-ar'
strip = 'i686-w64-mingw32-strip'
windres = 'i686-w64-mingw32-windres'
dlltool = 'i686-w64-mingw32-dlltool'
exe_wrapper = 'wine'
[properties]
-ar = 'i686-w64-mingw32-ar'
-nm = 'i686-w64-mingw32-nm'
+ar = 'i686-w64-mingw32-gcc-ar'
+nm = 'i686-w64-mingw32-gcc-nm'
needs_exe_wrapper = true
+[built-in options]
+cpp_args = ['-fno-declone-ctor-dtor']
+
[host_machine]
system = 'windows'
cpu_family = 'x86'
diff --git a/cross/x86_64-w64-msvc-clang.txt b/cross/x86_64-w64-clang-cl.txt
index 284dab7..8298a16 100644
--- a/cross/x86_64-w64-msvc-clang.txt
+++ b/cross/x86_64-w64-clang-cl.txt
@@ -3,19 +3,26 @@ c = 'clang-cl'
c_ld = 'lld-link'
cpp = 'clang-cl'
cpp_ld = 'lld-link'
-ar = 'llvm-lib'
+ar = 'llvm-ar'
nm = 'llvm-objdump'
dlltool = 'llvm-dlltool'
windres = 'llvm-rc'
pkg-config = ''
+cmake = 'cmake'
exe_wrapper = 'wine64'
[properties]
ld = 'lld-link'
-ar = 'llvm-lib'
+ar = 'llvm-ar'
nm = 'llvm-objdump'
needs_exe_wrapper = true
+[cmake]
+CMAKE_C_COMPILER = 'clang-cl'
+CMAKE_CXX_COMPILER = 'clang-cl'
+CMAKE_C_COMPILER_LAUNCHER = ''
+CMAKE_CXX_COMPILER_LAUNCHER = ''
+
[built-in options]
c_args = ['--target=x86_64-windows-msvc', '-fuse-ld=lld']
cpp_args = ['--target=x86_64-windows-msvc', '-fuse-ld=lld']
diff --git a/cross/x86_64-w64-mingw32.txt b/cross/x86_64-w64-mingw32.txt
index e04d439..8d75e8d 100644
--- a/cross/x86_64-w64-mingw32.txt
+++ b/cross/x86_64-w64-mingw32.txt
@@ -5,7 +5,6 @@ c = 'x86_64-w64-mingw32-gcc'
cpp = 'x86_64-w64-mingw32-g++'
# https://github.com/msys2/MINGW-packages/issues/3516
# https://github.com/mesonbuild/meson/issues/13324
-# https://github.com/msys2/MINGW-packages/issues/11726
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106103
# https://embeddedartistry.com/blog/2020/04/13/prefer-gcc-ar-to-ar-in-your-buildsystems/
ar = 'x86_64-w64-mingw32-gcc-ar'
@@ -19,6 +18,10 @@ ar = 'x86_64-w64-mingw32-gcc-ar'
nm = 'x86_64-w64-mingw32-gcc-nm'
needs_exe_wrapper = true
+[built-in options]
+# https://github.com/msys2/MINGW-packages/issues/11726#issuecomment-1381836644
+cpp_args = ['-fno-declone-ctor-dtor']
+
[host_machine]
system = 'windows'
cpu_family = 'x86_64'