Skip to content

Commit 48b75e0

Browse files
authored
Merge pull request #4087 from no1wudi/fix
fix(build_llvm.py): clean up whitespace and formatting in build script
2 parents 159f589 + d86bd7c commit 48b75e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build-scripts/build_llvm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
112112
]
113113

114114
# if not on ARC platform, but want to add expeirmental backend ARC as target
115-
if platform != "ARC" and "ARC" in backends:
115+
if platform != "ARC" and "ARC" in backends:
116116
LLVM_TARGETS_TO_BUILD.extend(
117117
LLVM_EXTRA_COMPILE_OPTIONS["arc"]
118118
)
@@ -211,11 +211,11 @@ def repackage_llvm_windows(llvm_dir):
211211
if not packs_path:
212212
raise Exception("Didn't find any LLVM-* package")
213213
return
214-
214+
215215
llvm_package_path = f"_CPack_Packages/win64/NSIS/{packs_path[0].name}"
216216
windows_package_dir = build_dir.joinpath(llvm_package_path).resolve()
217217

218-
# mv package dir outside of build
218+
# mv package dir outside of build
219219
shutil.move(str(windows_package_dir), str(llvm_dir))
220220
# rm -r build
221221
shutil.rmtree(str(build_dir))
@@ -225,7 +225,7 @@ def repackage_llvm_windows(llvm_dir):
225225
moved_package_dir = llvm_dir.joinpath(packs_path[0].name)
226226
for sub_dir in moved_package_dir.iterdir():
227227
shutil.move(str(sub_dir), str(build_dir))
228-
moved_package_dir.rmdir()
228+
moved_package_dir.rmdir()
229229

230230
def main():
231231
parser = argparse.ArgumentParser(description="build necessary LLVM libraries")

0 commit comments

Comments
 (0)