Skip to content

[build_script.py] Provide default temp build dir #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ If your install of Swift is located at `/swift` and you wish to install XCTest i
To run the tests on Linux, use the `--test` option:

```sh
./build_script.py \
--swiftc="/swift/usr/bin/swiftc" \
--build-dir="/tmp/XCTest_build" \
--test
./build_script.py --swiftc="/swift/usr/bin/swiftc" --test
```

To run the tests on OS X, build and run the `SwiftXCTestFunctionalTests` target in the Xcode project. You may also run them via the command line:
Expand Down
10 changes: 7 additions & 3 deletions build_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#

import os, subprocess, argparse
import argparse
import os
import subprocess
import tempfile

SOURCE_DIR = os.path.dirname(os.path.abspath(__file__))

Expand All @@ -28,9 +31,10 @@ def main():
metavar="PATH",
required=True)
parser.add_argument("--build-dir",
help="path to the output build directory",
help="path to the output build directory. If not "
"specified, a temporary directory is used",
metavar="PATH",
required=True)
default=tempfile.mkdtemp())
parser.add_argument("--swift-build-dir", help="deprecated, do not use")
parser.add_argument("--arch", help="deprecated, do not use")
parser.add_argument("--module-install-path",
Expand Down