File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
lib/ruby_wasm/build_system/product Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ def name
31
31
32
32
def configure_args
33
33
args = %w[
34
+ gcc
34
35
-static
35
36
-no-asm
36
37
-no-threads
Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ def name
28
28
product_build_dir
29
29
end
30
30
31
+ def configure_args
32
+ args = %w[
33
+ CHOST=linux
34
+ ]
35
+
36
+ args + tools_args
37
+ end
38
+
31
39
def build
32
40
return if Dir . exist? ( install_root )
33
41
@@ -38,9 +46,10 @@ def build
38
46
chdir : File . dirname ( product_build_dir ) ,
39
47
exception : true
40
48
41
- system "#{ tools_args . join ( " " ) } ./configure --static" ,
49
+ system "#{ configure_args . join ( " " ) } ./configure --static" ,
50
+ chdir : product_build_dir
51
+ system "make install DESTDIR=#{ destdir } " ,
42
52
chdir : product_build_dir
43
- system "make install DESTDIR=#{ destdir } " , chdir : product_build_dir
44
53
end
45
54
end
46
55
end
You can’t perform that action at this time.
0 commit comments