koch, compiler: bundle fusion as part of the source archive (#15409)

This allows distributions to build Nim from the downloaded source
archive without an Internet connection.
This commit is contained in:
alaviss 2020-09-26 07:31:55 +00:00 • committed by GitHub
commit d4892e9388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 5 deletions

View file

@ -201,7 +201,8 @@ proc bundleWinTools(args: string) =
proc bundleFusion(latest: bool) =
let commit = if latest: "HEAD" else: FusionStableCommit
cloneDependency(distDir, "https://github.com/nim-lang/fusion.git", commit)
cloneDependency(distDir, "https://github.com/nim-lang/fusion.git", commit,
allowBundled = true)
copyDir(distDir / "fusion" / "src" / "fusion", "lib" / "fusion")
proc zip(latest: bool; args: string) =