Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
24bit-xjkp committed Mar 16, 2024
1 parent 6bea01f commit e97e9ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions script/x86_64_linux_gnu_clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,27 @@ def build(stage: int = env.stage) -> None:
env.remove_build_dir("runtimes")
env.stage += 1

basic_command = ("-stdlib=libc++", "-unwindlib=libunwind", "-rtlib=compiler-rt")
if env.stage == 2:
env.config("llvm", env.host, "-stdlib=libc++ -unwindlib=libunwind -rtlib=compiler-rt", **{**env.dylib_option_list, **env.llvm_option_list_2})
env.config("llvm", env.host, *basic_command, **{**env.dylib_option_list, **env.llvm_option_list_2})
env.make("llvm")
env.install("llvm")
env.copy_llvm_libs()
env.stage += 1

if env.stage == 3:
for target in llvm.system_list.keys():
command = "-stdlib=libc++ -unwindlib=libunwind -rtlib=compiler-rt "
command = basic_command
match target:
case "x86_64-w64-mingw32":
option = env.llvm_option_list_w64_3
command += "-lgcc -lunwind -lsupc++"
command = (*basic_command, "-lgcc", "-lunwind,", "-lsupc++")
case "i686-w64-mingw32":
option = env.llvm_option_list_w32_3
command += "-lgcc -lunwind -lsupc++"
command = (*basic_command, "-lgcc", "-lunwind,", "-lsupc++")
case _:
option = env.llvm_option_list_3
env.config("runtimes", target, command, **option)
env.config("runtimes", target, *command, **option)
env.make("runtimes")
env.install("runtimes")
env.build_sysroot(target)
Expand All @@ -58,6 +59,5 @@ def build(stage: int = env.stage) -> None:
env.package()



if __name__ == "__main__":
build()

0 comments on commit e97e9ad

Please sign in to comment.