Merge pull request #55792 from aaronfranke/misc
This commit is contained in:
commit
0fba151446
|
@ -37,7 +37,7 @@ jobs:
|
||||||
sconsflags: float=64 use_asan=yes use_ubsan=yes
|
sconsflags: float=64 use_asan=yes use_ubsan=yes
|
||||||
proj-test: true
|
proj-test: true
|
||||||
godot-cpp-test: true
|
godot-cpp-test: true
|
||||||
bin: "./bin/godot.linuxbsd.double.tools.64s"
|
bin: "./bin/godot.linuxbsd.double.tools.64.san"
|
||||||
build-mono: false
|
build-mono: false
|
||||||
# Skip 2GiB artifact speeding up action.
|
# Skip 2GiB artifact speeding up action.
|
||||||
artifact: false
|
artifact: false
|
||||||
|
|
|
@ -4606,7 +4606,7 @@ Error GLTFDocument::_parse_lights(Ref<GLTFState> state) {
|
||||||
light->outer_cone_angle = spot["outerConeAngle"];
|
light->outer_cone_angle = spot["outerConeAngle"];
|
||||||
ERR_CONTINUE_MSG(light->inner_cone_angle >= light->outer_cone_angle, "The inner angle must be smaller than the outer angle.");
|
ERR_CONTINUE_MSG(light->inner_cone_angle >= light->outer_cone_angle, "The inner angle must be smaller than the outer angle.");
|
||||||
} else if (type != "point" && type != "directional") {
|
} else if (type != "point" && type != "directional") {
|
||||||
ERR_CONTINUE_MSG(ERR_PARSE_ERROR, "Light type is unknown.");
|
ERR_CONTINUE_MSG(true, "Light type is unknown.");
|
||||||
}
|
}
|
||||||
|
|
||||||
state->lights.push_back(light);
|
state->lights.push_back(light);
|
||||||
|
|
|
@ -152,7 +152,7 @@ def configure(env):
|
||||||
abi_subpath = "i686-linux-android"
|
abi_subpath = "i686-linux-android"
|
||||||
arch_subpath = "x86"
|
arch_subpath = "x86"
|
||||||
env["x86_libtheora_opt_gcc"] = True
|
env["x86_libtheora_opt_gcc"] = True
|
||||||
if env["android_arch"] == "x86_64":
|
elif env["android_arch"] == "x86_64":
|
||||||
if get_platform(env["ndk_platform"]) < 21:
|
if get_platform(env["ndk_platform"]) < 21:
|
||||||
print(
|
print(
|
||||||
"WARNING: android_arch=x86_64 is not supported by ndk_platform lower than android-21; setting"
|
"WARNING: android_arch=x86_64 is not supported by ndk_platform lower than android-21; setting"
|
||||||
|
|
|
@ -161,7 +161,7 @@ def configure(env):
|
||||||
env.Append(LINKFLAGS=["-ftest-coverage", "-fprofile-arcs"])
|
env.Append(LINKFLAGS=["-ftest-coverage", "-fprofile-arcs"])
|
||||||
|
|
||||||
if env["use_ubsan"] or env["use_asan"] or env["use_lsan"] or env["use_tsan"] or env["use_msan"]:
|
if env["use_ubsan"] or env["use_asan"] or env["use_lsan"] or env["use_tsan"] or env["use_msan"]:
|
||||||
env.extra_suffix += "s"
|
env.extra_suffix += ".san"
|
||||||
|
|
||||||
if env["use_ubsan"]:
|
if env["use_ubsan"]:
|
||||||
env.Append(
|
env.Append(
|
||||||
|
|
|
@ -124,7 +124,7 @@ def configure(env):
|
||||||
env["AS"] = basecmd + "as"
|
env["AS"] = basecmd + "as"
|
||||||
|
|
||||||
if env["use_ubsan"] or env["use_asan"] or env["use_tsan"]:
|
if env["use_ubsan"] or env["use_asan"] or env["use_tsan"]:
|
||||||
env.extra_suffix += "s"
|
env.extra_suffix += ".san"
|
||||||
|
|
||||||
if env["use_ubsan"]:
|
if env["use_ubsan"]:
|
||||||
env.Append(
|
env.Append(
|
||||||
|
|
|
@ -308,7 +308,7 @@ def configure_msvc(env, manual_msvc_config):
|
||||||
|
|
||||||
# Sanitizers
|
# Sanitizers
|
||||||
if env["use_asan"]:
|
if env["use_asan"]:
|
||||||
env.extra_suffix += ".s"
|
env.extra_suffix += ".san"
|
||||||
env.Append(LINKFLAGS=["/INFERASANLIBS"])
|
env.Append(LINKFLAGS=["/INFERASANLIBS"])
|
||||||
env.Append(CCFLAGS=["/fsanitize=address"])
|
env.Append(CCFLAGS=["/fsanitize=address"])
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ index 3999a71521..4c9e0cf7ab 100644
|
||||||
-#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
|
-#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
|
||||||
+// -- GODOT start --
|
+// -- GODOT start --
|
||||||
+//#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
|
+//#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
|
||||||
+#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION)) && (!defined(_M_ARM))
|
+#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION)) && (!defined(_M_ARM)) && (!defined(_M_ARM64))
|
||||||
+// -- GODOT end --
|
+// -- GODOT end --
|
||||||
#define BT_USE_SSE
|
#define BT_USE_SSE
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
|
|
|
@ -74,7 +74,7 @@ inline int32_t btGetVersion()
|
||||||
|
|
||||||
// -- GODOT start --
|
// -- GODOT start --
|
||||||
//#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
|
//#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
|
||||||
#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION)) && (!defined(_M_ARM))
|
#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION)) && (!defined(_M_ARM)) && (!defined(_M_ARM64))
|
||||||
// -- GODOT end --
|
// -- GODOT end --
|
||||||
#define BT_USE_SSE
|
#define BT_USE_SSE
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
|
|
Loading…
Reference in New Issue