@@ -30,33 +30,28 @@ def should_build(self, host_target):
30
30
31
31
def run_bootstrap_script (self , action , host_target , additional_params = []):
32
32
script_path = os .path .join (
33
- self .source_dir , 'Utilities' , 'bootstrap' )
33
+ self .source_dir , 'Utilities' , 'new- bootstrap' )
34
34
toolchain_path = self .install_toolchain_path ()
35
35
swiftc = os .path .join (toolchain_path , "usr" , "bin" , "swiftc" )
36
- sbt = os .path .join (toolchain_path , "usr" , "bin" , "swift-build-tool" )
37
-
38
- llbuild_src = os .path .join (os .path .dirname (self .source_dir ), "llbuild" )
39
36
40
37
# FIXME: We require llbuild build directory in order to build. Is
41
38
# there a better way to get this?
42
39
build_root = os .path .dirname (self .build_dir )
43
40
llbuild_build_dir = os .path .join (
44
41
build_root , '%s-%s' % ("llbuild" , host_target ))
45
42
46
- helper_cmd = [script_path ]
47
-
48
- if action != "build" :
49
- helper_cmd .append (action )
43
+ helper_cmd = [script_path , action ]
50
44
51
45
if self .is_release ():
52
46
helper_cmd .append ("--release" )
53
47
54
48
helper_cmd += [
55
- "--swiftc" , swiftc ,
56
- "--sbt" , sbt ,
57
- "--build" , self .build_dir ,
58
- "--llbuild-source-dir" , llbuild_src ,
59
- "--llbuild-build-dir" , llbuild_build_dir ,
49
+ "--swiftc-path" , swiftc ,
50
+ "--clang-path" , self .toolchain .cc ,
51
+ "--cmake-path" , self .toolchain .cmake ,
52
+ "--ninja-path" , self .toolchain .ninja ,
53
+ "--build-dir" , self .build_dir ,
54
+ "--llbuild-build-dir" , llbuild_build_dir
60
55
]
61
56
helper_cmd .extend (additional_params )
62
57
0 commit comments