@@ -65,7 +65,7 @@ template("unix_toolchain") {
6565 }
6666
6767 tool (" alink" ) {
68- if (current_os == " ios " || current_os == " mac" ) {
68+ if (current_os == " mac" ) {
6969 command = " libtool -D -static -no_warning_for_no_symbols {{arflags}} -o {{output}} {{inputs}}"
7070 not_needed ([ " ar" ])
7171 } else {
@@ -93,7 +93,7 @@ template("unix_toolchain") {
9393 outfile = " {{output_dir}}/{{target_output_name}}{{output_extension}}"
9494 rspfile = outfile + " .rsp"
9595 rspfile_content = " {{inputs}}"
96- if (current_os == " ios " || current_os == " mac" ) {
96+ if (current_os == " mac" ) {
9797 command = " $ld -shared {{ldflags}} -o $outfile @\" $rspfile \" {{libs}} {{frameworks}} -Wl,-install_name,@rpath/{{target_output_name}}{{output_extension}}"
9898 default_output_extension = " .dylib"
9999 } else {
@@ -113,7 +113,7 @@ template("unix_toolchain") {
113113
114114 tool (" solink_module" ) {
115115 outfile = " {{output_dir}}/{{target_output_name}}{{output_extension}}"
116- if (current_os == " ios " || current_os == " mac" ) {
116+ if (current_os == " mac" ) {
117117 command = " $ld -shared {{ldflags}} -Wl,-flat_namespace -Wl,-undefined,suppress -o $outfile {{inputs}} {{libs}} {{frameworks}} -Wl,-install_name,@rpath/{{target_output_name}}{{output_extension}}"
118118 default_output_extension = " .dylib"
119119 } else {
@@ -135,7 +135,7 @@ template("unix_toolchain") {
135135 command_launcher = " ccache"
136136 }
137137 outfile = " {{output_dir}}/{{target_output_name}}{{output_extension}}"
138- if (current_os == " ios " || current_os == " mac" ) {
138+ if (current_os == " mac" ) {
139139 command = " $ld {{ldflags}} -o $outfile {{inputs}} {{libs}} {{frameworks}} -Wl,-rpath,@executable_path/../lib"
140140 } else {
141141 command = " $ld {{ldflags}} -o $outfile -Wl,--start-group {{inputs}} -Wl,--end-group -Wl,-rpath,\\\$ ORIGIN/../lib {{libs}}"
@@ -157,7 +157,7 @@ template("unix_toolchain") {
157157 description = " COPY {{source}} {{output}}"
158158 }
159159
160- if (current_os == " ios " || current_os == " mac" ) {
160+ if (current_os == " mac" ) {
161161 tool (" copy_bundle_data" ) {
162162 # https://github.com/nico/hack/blob/master/notes/copydir.md
163163 _copydir = " cd {{source}} && " +
0 commit comments