[3.x] Add RISC-V to "server" platform

This commit is contained in:
Aaron Franke 2021-10-27 13:56:38 -05:00
parent 187f293189
commit 18b1de1983
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF

View file

@ -80,6 +80,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"]):