@@ -47,19 +47,24 @@ def should_test(self, host_target):
47
47
48
48
def should_install (self , host_target ):
49
49
# Currently, it's only used for testing stdlib.
50
- return False
50
+ return True
51
51
52
52
def install (self , host_target ):
53
- pass
53
+ """
54
+ Install WasmKit to the target location
55
+ """
56
+ install_destdir = self .host_install_destdir (host_target )
57
+ build_toolchain_path = install_destdir + self .args .install_prefix + '/bin'
58
+ shutil .copy (self .bin_path , build_toolchain_path )
54
59
55
60
def build (self , host_target ):
56
- bin_path = run_swift_build (host_target , self , 'wasmkit-cli' )
57
- print ("Built wasmkit-cli at: " + bin_path )
61
+ self . bin_path = run_swift_build (host_target , self , 'wasmkit-cli' )
62
+ print ("Built wasmkit-cli at: " + self . bin_path )
58
63
# Copy the built binary to ./bin
59
64
dest_bin_path = self .__class__ .cli_file_path (self .build_dir )
60
65
print ("Copying wasmkit-cli to: " + dest_bin_path )
61
66
os .makedirs (os .path .dirname (dest_bin_path ), exist_ok = True )
62
- shutil .copy (bin_path , dest_bin_path )
67
+ shutil .copy (self . bin_path , dest_bin_path )
63
68
64
69
@classmethod
65
70
def cli_file_path (cls , build_dir ):
0 commit comments