Skip to content

Commit

Permalink
__assertion_handler をコピーする
Browse files Browse the repository at this point in the history
  • Loading branch information
miosakuma committed Mar 29, 2024
1 parent acddc75 commit 866f33b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,16 @@ def install_llvm(
os.path.join(llvm_dir, "libcxx", "include", "__config_site"),
)

# __assertion_handler をコピーする
# 背景: https://source.chromium.org/chromium/_/chromium/external/github.com/llvm/llvm-project/libcxx.git/+/1e5bda0d1ce8e346955aa4a85eaab258785f11f7
shutil.copyfile(
# NOTE(enm10k): 最初は default_assertion_handler.in をコピーしていたが、 buildtools 以下に
# default_assertion_handler.in から生成されたと思われる __assertion_handler が存在するため、それをコピーする
# os.path.join(llvm_dir, "libcxx", "vendor", "llvm", "default_assertion_handler.in"),
os.path.join(llvm_dir, "buildtools", "third_party", "libc++", "__assertion_handler"),
os.path.join(llvm_dir, "libcxx", "include", "__assertion_handler"),
)


@versioned
def install_boost(version, source_dir, install_dir, sora_version, platform: str):
Expand Down

0 comments on commit 866f33b

Please sign in to comment.