mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 17:05:38 +00:00
Merge pull request #4086 from no1wudi/fix
build_llvm.py: Allow to build xtensa target on non-xtensa host
This commit is contained in:
commit
1971cac6c3
|
@ -117,12 +117,6 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
|
||||||
LLVM_EXTRA_COMPILE_OPTIONS["arc"]
|
LLVM_EXTRA_COMPILE_OPTIONS["arc"]
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform != "Xtensa" and "Xtensa" in backends:
|
|
||||||
print(
|
|
||||||
"Currently it's not supported to build Xtensa backend on non-Xtensa platform"
|
|
||||||
)
|
|
||||||
return None
|
|
||||||
|
|
||||||
LLVM_PROJECTS_TO_BUILD = [
|
LLVM_PROJECTS_TO_BUILD = [
|
||||||
'-DLLVM_ENABLE_PROJECTS:STRING="' + ";".join(projects) + '"' if projects else ""
|
'-DLLVM_ENABLE_PROJECTS:STRING="' + ";".join(projects) + '"' if projects else ""
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user