@@ -19,7 +19,7 @@ template("base64_gn_build") {
1919 } else {
2020 defines = []
2121 }
22- if (target_cpu == " x86" || target_cpu == " x64" ) {
22+ if (current_cpu == " x86" || current_cpu == " x64" ) {
2323 defines += [
2424 " HAVE_SSSE3=1" ,
2525 " HAVE_SSE41=1" ,
@@ -29,10 +29,10 @@ template("base64_gn_build") {
2929 " HAVE_AVX512=1" ,
3030 ]
3131 }
32- if (target_cpu == " arm" ) {
32+ if (current_cpu == " arm" ) {
3333 defines += [ " HAVE_NEON32=1" ]
3434 }
35- if (target_cpu == " arm64" ) {
35+ if (current_cpu == " arm64" ) {
3636 defines += [ " HAVE_NEON64=1" ]
3737 }
3838 if (is_clang || ! is_win ) {
@@ -69,7 +69,7 @@ template("base64_gn_build") {
6969 source_set (" base64_ssse3" ) {
7070 configs += [ " :base64_internal_config" ]
7171 sources = [ " base64/lib/arch/ssse3/codec.c" ]
72- if (target_cpu == " x86" || target_cpu == " x64" ) {
72+ if (current_cpu == " x86" || current_cpu == " x64" ) {
7373 if (is_clang || ! is_win ) {
7474 cflags_c = [ " -mssse3" ]
7575 }
@@ -79,7 +79,7 @@ template("base64_gn_build") {
7979 source_set (" base64_sse41" ) {
8080 configs += [ " :base64_internal_config" ]
8181 sources = [ " base64/lib/arch/sse41/codec.c" ]
82- if (target_cpu == " x86" || target_cpu == " x64" ) {
82+ if (current_cpu == " x86" || current_cpu == " x64" ) {
8383 if (is_clang || ! is_win ) {
8484 cflags_c = [ " -msse4.1" ]
8585 }
@@ -89,7 +89,7 @@ template("base64_gn_build") {
8989 source_set (" base64_sse42" ) {
9090 configs += [ " :base64_internal_config" ]
9191 sources = [ " base64/lib/arch/sse42/codec.c" ]
92- if (target_cpu == " x86" || target_cpu == " x64" ) {
92+ if (current_cpu == " x86" || current_cpu == " x64" ) {
9393 if (is_clang || ! is_win ) {
9494 cflags_c = [ " -msse4.2" ]
9595 }
@@ -99,7 +99,7 @@ template("base64_gn_build") {
9999 source_set (" base64_avx" ) {
100100 configs += [ " :base64_internal_config" ]
101101 sources = [ " base64/lib/arch/avx/codec.c" ]
102- if (target_cpu == " x86" || target_cpu == " x64" ) {
102+ if (current_cpu == " x86" || current_cpu == " x64" ) {
103103 if (is_clang || ! is_win ) {
104104 cflags_c = [ " -mavx" ]
105105 } else if (is_win ) {
@@ -111,7 +111,7 @@ template("base64_gn_build") {
111111 source_set (" base64_avx2" ) {
112112 configs += [ " :base64_internal_config" ]
113113 sources = [ " base64/lib/arch/avx2/codec.c" ]
114- if (target_cpu == " x86" || target_cpu == " x64" ) {
114+ if (current_cpu == " x86" || current_cpu == " x64" ) {
115115 if (is_clang || ! is_win ) {
116116 cflags_c = [ " -mavx2" ]
117117 } else if (is_win ) {
@@ -123,7 +123,7 @@ template("base64_gn_build") {
123123 source_set (" base64_avx512" ) {
124124 configs += [ " :base64_internal_config" ]
125125 sources = [ " base64/lib/arch/avx512/codec.c" ]
126- if (target_cpu == " x86" || target_cpu == " x64" ) {
126+ if (current_cpu == " x86" || current_cpu == " x64" ) {
127127 if (is_clang || ! is_win ) {
128128 cflags_c = [
129129 " -mavx512vl" ,
@@ -138,7 +138,7 @@ template("base64_gn_build") {
138138 source_set (" base64_neon32" ) {
139139 configs += [ " :base64_internal_config" ]
140140 sources = [ " base64/lib/arch/neon32/codec.c" ]
141- if (target_cpu == " arm" ) {
141+ if (current_cpu == " arm" ) {
142142 if (is_clang || ! is_win ) {
143143 cflags_c = [ " -mfpu=neon" ]
144144 }
0 commit comments