Skip to content

Instantly share code, notes, and snippets.

@Akaricchi
Last active April 20, 2021 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akaricchi/c32767c26368d6ba75e97c14570b2df8 to your computer and use it in GitHub Desktop.
Save Akaricchi/c32767c26368d6ba75e97c14570b2df8 to your computer and use it in GitHub Desktop.
llvm-mingw meson crossfiles
[constants]
toolchain = '/opt/llvm-mingw'
arch = 'i686-w64-mingw32'
cpufamily = 'x86'
march = 'pentium4'
mtune = 'k8'
bin = toolchain/'bin'
exeprefix = bin/arch+'-'
cc = exeprefix+'clang'
cxx = exeprefix+'clang++'
cflags = ['-march='+march, '-mtune='+mtune, '-mfpmath=sse']
ldflags = ['-static']
[properties]
needs_exe_wrapper = true
sys_root = toolchain/arch
pkg_config_libdir = toolchain/arch/'lib'
[binaries]
c = cc
cpp = cxx
c_ld = 'lld'
cpp_ld = 'lld'
strip = exeprefix+'strip'
ar = exeprefix+'ar'
ranlib = exeprefix+'ranlib'
nm = exeprefix+'nm'
size = exeprefix+'size'
dlltool = exeprefix+'dlltool'
objcopy = exeprefix+'objcopy'
objdump = exeprefix+'objdump'
widl = exeprefix+'widl'
windres = exeprefix+'windres'
ld = exeprefix+'ld'
[built-in options]
c_args = cflags
c_link_args = ldflags
cpp_args = cflags
cpp_link_args = ldflags
[cmake]
CMAKE_C_COMPILER = cc
CMAKE_CXX_COMPILER = cxx
CMAKE_C_FLAGS = cflags
CMAKE_CXX_FLAGS = cflags
[host_machine]
system = 'windows'
cpu_family = cpufamily
cpu = march
endian = 'little'
[constants]
toolchain = '/opt/llvm-mingw'
arch = 'x86_64-w64-mingw32'
cpufamily = 'x86_64'
march = 'x86-64-v2'
mtune = 'znver2'
bin = toolchain/'bin'
exeprefix = bin/arch+'-'
cc = exeprefix+'clang'
cxx = exeprefix+'clang++'
cflags = ['-march='+march, '-mtune='+mtune]
ldflags = ['-static']
[properties]
needs_exe_wrapper = true
sys_root = toolchain/arch
pkg_config_libdir = toolchain/arch/'lib'
[binaries]
c = cc
cpp = cxx
c_ld = 'lld'
cpp_ld = 'lld'
strip = exeprefix+'strip'
ar = exeprefix+'ar'
ranlib = exeprefix+'ranlib'
nm = exeprefix+'nm'
size = exeprefix+'size'
dlltool = exeprefix+'dlltool'
objcopy = exeprefix+'objcopy'
objdump = exeprefix+'objdump'
widl = exeprefix+'widl'
windres = exeprefix+'windres'
ld = exeprefix+'ld'
[built-in options]
c_args = cflags
c_link_args = ldflags
cpp_args = cflags
cpp_link_args = ldflags
[cmake]
CMAKE_C_COMPILER = cc
CMAKE_CXX_COMPILER = cxx
CMAKE_C_FLAGS = cflags
CMAKE_CXX_FLAGS = cflags
[host_machine]
system = 'windows'
cpu_family = cpufamily
cpu = march
endian = 'little'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment