9
9
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
#
11
11
12
- # Here is a nice way to invoke this script if you are building locally, and Swift is installed at /, and you want to install XCTest back there
13
- # sudo ./build_script.py --swiftc="/usr/bin/swiftc" --build-dir="/tmp/XCTest_build" --swift-build-dir="/usr" --library-install-path="/usr/lib/swift/linux" --module-install-path="/usr/lib/swift/linux/x86_64"
14
-
15
12
import os , subprocess , argparse
16
13
17
14
SOURCE_DIR = os .path .dirname (os .path .abspath (__file__ ))
@@ -34,13 +31,8 @@ def main():
34
31
help = "path to the output build directory" ,
35
32
metavar = "PATH" ,
36
33
required = True )
37
- parser .add_argument ("--swift-build-dir" ,
38
- help = "path to the swift build directory" ,
39
- metavar = "PATH" ,
40
- required = True )
41
- parser .add_argument ("--arch" ,
42
- help = "target architecture" ,
43
- required = True )
34
+ parser .add_argument ("--swift-build-dir" , help = "deprecated, do not use" )
35
+ parser .add_argument ("--arch" , help = "deprecated, do not use" )
44
36
parser .add_argument ("--module-install-path" ,
45
37
help = "location to install module files" ,
46
38
metavar = "PATH" ,
@@ -73,7 +65,6 @@ def main():
73
65
74
66
swiftc = os .path .abspath (args .swiftc )
75
67
build_dir = os .path .abspath (args .build_dir )
76
- swift_build_dir = os .path .abspath (args .swift_build_dir )
77
68
78
69
if not os .path .exists (build_dir ):
79
70
run ("mkdir -p {}" .format (build_dir ))
0 commit comments