mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
Add support for the RISC-V architecture
Supports RV64GC (RISC-V 64-bit with general-purpose and compressed-instruction extensions)
This commit is contained in:
parent
3bebbcacdb
commit
474d0f58f5
7 changed files with 25 additions and 4 deletions
|
|
@ -119,6 +119,13 @@ def configure(env):
|
|||
if env["bits"] == "default":
|
||||
env["bits"] = "64" if is64 else "32"
|
||||
|
||||
if env["arch"] == "" and platform.machine() == "riscv64":
|
||||
env["arch"] = "rv64"
|
||||
|
||||
if env["arch"] == "rv64":
|
||||
# G = General-purpose extensions, C = Compression extension (very common).
|
||||
env.Append(CCFLAGS=["-march=rv64gc"])
|
||||
|
||||
## Compiler configuration
|
||||
|
||||
if "CXX" in env and "clang" in os.path.basename(env["CXX"]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue