Add build doc (#72)

This commit is contained in:
star9029
2025-02-12 00:10:19 +08:00
committed by GitHub
parent 3cb30add99
commit 8a56456e04
4 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import("net.http")
function main()
local hash = "fac46469977da9c4e9c6eeaac21103c971190577" -- 2025.01.04
local github_url = format("https://raw.githubusercontent.com/llvm/llvm-project/%s/clang/lib/Sema/", hash)
local headers = {
"CoroutineStmtBuilder.h",
"TypeLocBuilder.h",
"TreeTransform.h",
}
local install_clang_include_dir = path.join(path.directory(path.absolute(os.scriptdir())), "include/clang/Sema")
for _, header in ipairs(headers) do
http.download(github_url .. header, path.join(install_clang_include_dir, header))
end
end