Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package system runtime dependencies into Windows distribution.
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
# xfail-license | ||
|
||
# Copies Rust runtime dependencies to the specified directory | ||
|
||
import snapshot, sys, os, shutil | ||
|
||
def copy_runtime_deps(dest_dir): | ||
for path in snapshot.get_winnt_runtime_deps(): | ||
shutil.copy(path, dest_dir) | ||
|
||
lic_dest = os.path.join(dest_dir, "third-party") | ||
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files | ||
shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest) | ||
|
||
copy_runtime_deps(sys.argv[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4e59ab0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from brson
at vadimcn@4e59ab0
4e59ab0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging vadimcn/rust/package-runtime-deps = 4e59ab0 into auto
4e59ab0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vadimcn/rust/package-runtime-deps = 4e59ab0 merged ok, testing candidate = 8bb55dbf
4e59ab0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1839
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1843
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/949
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/948
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1857
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/949
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/949
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1858
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/949
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/949
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/1029
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1842
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/948
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/949
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/1627
4e59ab0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 8bb55dbf