Merge pull request #2 from bruvzg/mingw_fixes

[MinGW] Rename conflicting file, add missing timespec function implementation.
This commit is contained in:
Yuri Sizov
2023-12-14 16:18:06 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -279,7 +279,7 @@ extra_defines += [
"__STDC_CONSTANT_MACROS",
"__STDC_FORMAT_MACROS",
"__STDC_LIMIT_MACROS",
("PACKAGE_VERSION", '\\"' + Path(mesa_absdir + "/VERSION").read_text().strip() + '\\"'),
("PACKAGE_VERSION", '\\"' + Path(mesa_absdir + "/VERSION.info").read_text().strip() + '\\"'),
("PACKAGE_BUGREPORT", '\\"https://gitlab.freedesktop.org/mesa/mesa/-/issues\\"'),
"PIPE_SUBSYSTEM_WINDOWS_USER",
"_USE_MATH_DEFINES",
@@ -297,6 +297,7 @@ if env.get("is_msvc", False):
("_HAS_EXCEPTIONS", 0),
"NOMINMAX",
"HAVE_STRUCT_TIMESPEC",
"HAVE_TIMESPEC_GET",
("_Static_assert", "static_assert"),
]
env.Append(CFLAGS=["/std:c11"])

4
update_mesa.sh Normal file → Executable file
View File

@@ -89,7 +89,6 @@ copy_sources() {
}
# These are the first we know for sure we want to copy.
copy_file . VERSION
copy_file . .editorconfig
copy_subir_sources src/microsoft/compiler
copy_subir_sources src/microsoft/spirv_to_dxil
@@ -106,6 +105,7 @@ copy_sources() {
copy_subir_headers include/KHR
copy_subir_headers src/c11
copy_file src/c11/impl threads_win32.*
copy_file src/c11/impl time.c
copy_subir_sources src/compiler
copy_subir_headers src/compiler/glsl
copy_subir_sources src/compiler/nir
@@ -146,7 +146,7 @@ copy_sources() {
copy_file src/util u_vector.c
copy_file src/util u_worklist.c
cp ./mesa/VERSION godot-mesa
cp ./mesa/VERSION godot-mesa/VERSION.info
check_error
}