@@ -928,6 +928,9 @@ def main():
928
928
help = "Extra actions to perform. Can be any number of "
929
929
"the following: [clean, all, test, install]" ,
930
930
nargs = "*" , default = ["all" ])
931
+ parser .add_argument ("--show-bin-path" , action = 'store_true' ,
932
+ help = "output the path to which the swiftpm binaries "
933
+ "are built" )
931
934
parser .add_argument ("--swiftc" , dest = "swiftc_path" ,
932
935
help = "path to the swift compiler [%(default)s]" ,
933
936
metavar = "PATH" )
@@ -1064,6 +1067,13 @@ def main():
1064
1067
args .llbuild_build_dir = os .path .join (target_path , conf , "llbuild" )
1065
1068
should_build_llbuild = True
1066
1069
1070
+ libdir = os .path .join (target_path , "lib" )
1071
+ bindir = os .path .join (target_path , conf )
1072
+
1073
+ if args .show_bin_path :
1074
+ print (bindir )
1075
+ sys .exit (0 )
1076
+
1067
1077
checkTool (["rsync" , "--version" ])
1068
1078
1069
1079
# If the action is "clean", just remove the bootstrap and build directories.
@@ -1112,9 +1122,6 @@ def main():
1112
1122
processed_runtimes [version ] = process_runtime_libraries (
1113
1123
build , args , lib_path )
1114
1124
1115
-
1116
- libdir = os .path .join (target_path , "lib" )
1117
- bindir = os .path .join (target_path , conf )
1118
1125
mkdir_p (bindir )
1119
1126
bootstrapped_product = os .path .join (bindir , "swift-build-stage1" )
1120
1127
0 commit comments