Generate jitdump to support linux perf for LLVM JIT (#2788)
This commit is contained in:
@ -67,8 +67,8 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
|
||||
"-DLLVM_INCLUDE_EXAMPLES:BOOL=OFF",
|
||||
"-DLLVM_INCLUDE_UTILS:BOOL=OFF",
|
||||
"-DLLVM_INCLUDE_TESTS:BOOL=OFF",
|
||||
"-DLLVM_BUILD_TESTS:BOOL=OFF",
|
||||
"-DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON",
|
||||
"-DLLVM_USE_PERF:BOOL=ON",
|
||||
]
|
||||
|
||||
# use clang/clang++/lld. but macos doesn't support lld
|
||||
@ -255,7 +255,7 @@ def main():
|
||||
"branch": "release/15.x",
|
||||
},
|
||||
"xtensa": {
|
||||
"repo": "https://github.com/espressif/llvm-project.git",
|
||||
"repo": "https://github.com/espressif/llvm-project.git",
|
||||
"repo_ssh": "git@github.com:espressif/llvm-project.git",
|
||||
"branch": "xtensa_release_15.x",
|
||||
},
|
||||
@ -281,13 +281,13 @@ def main():
|
||||
commit_hash = query_llvm_version(llvm_info)
|
||||
print(commit_hash)
|
||||
return commit_hash is not None
|
||||
|
||||
|
||||
repo_addr = llvm_info["repo"]
|
||||
if os.environ.get('USE_GIT_SSH') == "true":
|
||||
repo_addr = llvm_info["repo_ssh"]
|
||||
else:
|
||||
print("To use ssh for git clone, run: export USE_GIT_SSH=true")
|
||||
|
||||
|
||||
llvm_dir = clone_llvm(deps_dir, repo_addr, llvm_info["branch"])
|
||||
if (
|
||||
build_llvm(
|
||||
|
||||
Reference in New Issue
Block a user