1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

pass -mpopcnt when using clang / llvm and targeting x86_64 arch to support popcnt forceinline methods

This commit is contained in:
Travis Lange
2025-06-24 10:30:51 -04:00
parent 88b9932ce1
commit 7752cfecba

View File

@@ -741,7 +741,7 @@ if env["arch"] == "x86_64":
env.Append(CCFLAGS=["/d2archSSE42"]) env.Append(CCFLAGS=["/d2archSSE42"])
else: else:
# `-msse2` is implied when compiling for x86_64. # `-msse2` is implied when compiling for x86_64.
env.Append(CCFLAGS=["-msse4.2"]) env.Append(CCFLAGS=["-msse4.2", "-mpopcnt"])
elif env["arch"] == "x86_32": elif env["arch"] == "x86_32":
# Be more conservative with instruction sets on 32-bit x86 to improve compatibility. # Be more conservative with instruction sets on 32-bit x86 to improve compatibility.
# SSE and SSE2 are present on all CPUs that support 64-bit, even if running a 32-bit OS. # SSE and SSE2 are present on all CPUs that support 64-bit, even if running a 32-bit OS.