-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fixing Windows Clang build using meson native file
Set up a meson native file to use when compiling with Clang to fix the resource compiler issue since that seems to be not detected correctly automatically. Signed-off-by: Tyler Erickson <[email protected]>
- Loading branch information
1 parent
ff5205e
commit d93da26
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#See https://mesonbuild.com/Cross-compilation.html | ||
#and https://mesonbuild.com/Machine-files.html | ||
#and https://mesonbuild.com/Reference-tables.html#cpu-families | ||
#example usage of this file: | ||
# meson setup --buildtype=release --native-file=./meson_crosscompile/Windows-Clang.txt nativebuild_win_clang | ||
# ninja -C nativebuild_win_clang | ||
|
||
#NOTE: This is for the LLVM.exe installer from github. | ||
|
||
[binaries] | ||
c = 'clang.exe' | ||
cpp = 'clang++.exe' | ||
ar = 'llvm-ar.exe' | ||
c_ld = 'lld-link.exe' | ||
cpp_ld = 'lld-link.exe' | ||
strip = 'llvm-strip.exe' | ||
windres = 'llvm-rc.exe' | ||
llvm-config = 'llvm-config.exe' | ||
|
||
[properties] | ||
has_function_printf = true | ||
|
||
[host_machine] | ||
system = 'windows' | ||
subsystem = 'windows' | ||
kernel = 'nt' | ||
endian = 'little' | ||
cpu_family = 'x86_64' | ||
cpu = '' | ||
|
||
[built-in options] | ||
default_library='static' |