git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rewrite the lunabuild toolchain with enhanced feature
[lunaix-os.git]
/
lunaix-os
/
usr
/
LConfig
diff --git
a/lunaix-os/usr/LConfig
b/lunaix-os/usr/LConfig
index ea38d57f77c808e14f4bb7dd4aafd25720443bd3..ad2709cdb222f8b4498732d0429e93ed3aaa36c1 100644
(file)
--- a/
lunaix-os/usr/LConfig
+++ b/
lunaix-os/usr/LConfig
@@
-1,11
+1,8
@@
-@
Term
-def arch():
+@
"Architecture"
+def arch()
-> "i386" | "x86_64" | "aarch64" | "rv64"
:
"""
set the ISA target
"""
"""
set the ISA target
"""
- type(["i386", "x86_64", "aarch64", "rv64"])
- default("i386")
- env_val = env("ARCH")
- if env_val is not None:
- set_value(env_val)
\ No newline at end of file
+ _arch = env("ARCH")
+ return _arch if _arch else "x86_64"