Merge pull request #54319 from aaronfranke/3.x-riscv-server
[3.x] Add RISC-V to "server" platform
This commit is contained in:
commit
8723df767b
1 changed files with 7 additions and 0 deletions
|
@ -80,6 +80,13 @@ def configure(env):
|
||||||
if env["bits"] == "default":
|
if env["bits"] == "default":
|
||||||
env["bits"] = "64" if is64 else "32"
|
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
|
## Compiler configuration
|
||||||
|
|
||||||
if "CXX" in env and "clang" in os.path.basename(env["CXX"]):
|
if "CXX" in env and "clang" in os.path.basename(env["CXX"]):
|
||||||
|
|
Loading…
Reference in a new issue