File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ cat << EOF > "$mozconfig"
15
15
ac_add_options --enable-project=js
16
16
ac_add_options --enable-application=js
17
17
ac_add_options --target=wasm32-unknown-wasi
18
- ac_add_options --disable-stdcxx-compat
19
18
ac_add_options --without-system-zlib
20
19
ac_add_options --without-intl-api
21
20
ac_add_options --disable-jit
@@ -30,6 +29,22 @@ ac_add_options --prefix=${working_dir}/${objdir}/dist
30
29
mk_add_options MOZ_OBJDIR=${working_dir} /${objdir}
31
30
EOF
32
31
32
+ target=" $( uname) "
33
+ case " $target " in
34
+ Linux)
35
+ echo " ac_add_options --disable-stdcxx-compat" >> " $mozconfig "
36
+ ;;
37
+
38
+ Darwin)
39
+ echo " ac_add_options --host=aarch64-apple-darwin" >> " $mozconfig "
40
+ ;;
41
+
42
+ * )
43
+ echo " Unsupported build target: $target "
44
+ exit 1
45
+ ;;
46
+ esac
47
+
33
48
case " $mode " in
34
49
release)
35
50
echo " ac_add_options --disable-debug" >> " $mozconfig "
You can’t perform that action at this time.
0 commit comments