@@ -19,7 +19,7 @@ template("base64_gn_build") { |
19 | 19 | } else { |
20 | 20 | defines = [] |
21 | 21 | } |
22 | | - if (target_cpu == "x86" || target_cpu == "x64") { |
| 22 | + if (current_cpu == "x86" || current_cpu == "x64") { |
23 | 23 | defines += [ |
24 | 24 | "HAVE_SSSE3=1", |
25 | 25 | "HAVE_SSE41=1", |
@@ -29,10 +29,10 @@ template("base64_gn_build") { |
29 | 29 | "HAVE_AVX512=1", |
30 | 30 | ] |
31 | 31 | } |
32 | | - if (target_cpu == "arm") { |
| 32 | + if (current_cpu == "arm") { |
33 | 33 | defines += [ "HAVE_NEON32=1" ] |
34 | 34 | } |
35 | | - if (target_cpu == "arm64") { |
| 35 | + if (current_cpu == "arm64") { |
36 | 36 | defines += [ "HAVE_NEON64=1" ] |
37 | 37 | } |
38 | 38 | if (is_clang || !is_win) { |
@@ -69,7 +69,7 @@ template("base64_gn_build") { |
69 | 69 | source_set("base64_ssse3") { |
70 | 70 | configs += [ ":base64_internal_config" ] |
71 | 71 | sources = [ "base64/lib/arch/ssse3/codec.c" ] |
72 | | - if (target_cpu == "x86" || target_cpu == "x64") { |
| 72 | + if (current_cpu == "x86" || current_cpu == "x64") { |
73 | 73 | if (is_clang || !is_win) { |
74 | 74 | cflags_c = [ "-mssse3" ] |
75 | 75 | } |
@@ -79,7 +79,7 @@ template("base64_gn_build") { |
79 | 79 | source_set("base64_sse41") { |
80 | 80 | configs += [ ":base64_internal_config" ] |
81 | 81 | sources = [ "base64/lib/arch/sse41/codec.c" ] |
82 | | - if (target_cpu == "x86" || target_cpu == "x64") { |
| 82 | + if (current_cpu == "x86" || current_cpu == "x64") { |
83 | 83 | if (is_clang || !is_win) { |
84 | 84 | cflags_c = [ "-msse4.1" ] |
85 | 85 | } |
@@ -89,7 +89,7 @@ template("base64_gn_build") { |
89 | 89 | source_set("base64_sse42") { |
90 | 90 | configs += [ ":base64_internal_config" ] |
91 | 91 | sources = [ "base64/lib/arch/sse42/codec.c" ] |
92 | | - if (target_cpu == "x86" || target_cpu == "x64") { |
| 92 | + if (current_cpu == "x86" || current_cpu == "x64") { |
93 | 93 | if (is_clang || !is_win) { |
94 | 94 | cflags_c = [ "-msse4.2" ] |
95 | 95 | } |
@@ -99,7 +99,7 @@ template("base64_gn_build") { |
99 | 99 | source_set("base64_avx") { |
100 | 100 | configs += [ ":base64_internal_config" ] |
101 | 101 | sources = [ "base64/lib/arch/avx/codec.c" ] |
102 | | - if (target_cpu == "x86" || target_cpu == "x64") { |
| 102 | + if (current_cpu == "x86" || current_cpu == "x64") { |
103 | 103 | if (is_clang || !is_win) { |
104 | 104 | cflags_c = [ "-mavx" ] |
105 | 105 | } else if (is_win) { |
@@ -111,7 +111,7 @@ template("base64_gn_build") { |
111 | 111 | source_set("base64_avx2") { |
112 | 112 | configs += [ ":base64_internal_config" ] |
113 | 113 | sources = [ "base64/lib/arch/avx2/codec.c" ] |
114 | | - if (target_cpu == "x86" || target_cpu == "x64") { |
| 114 | + if (current_cpu == "x86" || current_cpu == "x64") { |
115 | 115 | if (is_clang || !is_win) { |
116 | 116 | cflags_c = [ "-mavx2" ] |
117 | 117 | } else if (is_win) { |
@@ -123,7 +123,7 @@ template("base64_gn_build") { |
123 | 123 | source_set("base64_avx512") { |
124 | 124 | configs += [ ":base64_internal_config" ] |
125 | 125 | sources = [ "base64/lib/arch/avx512/codec.c" ] |
126 | | - if (target_cpu == "x86" || target_cpu == "x64") { |
| 126 | + if (current_cpu == "x86" || current_cpu == "x64") { |
127 | 127 | if (is_clang || !is_win) { |
128 | 128 | cflags_c = [ |
129 | 129 | "-mavx512vl", |
@@ -138,7 +138,7 @@ template("base64_gn_build") { |
138 | 138 | source_set("base64_neon32") { |
139 | 139 | configs += [ ":base64_internal_config" ] |
140 | 140 | sources = [ "base64/lib/arch/neon32/codec.c" ] |
141 | | - if (target_cpu == "arm") { |
| 141 | + if (current_cpu == "arm") { |
142 | 142 | if (is_clang || !is_win) { |
143 | 143 | cflags_c = [ "-mfpu=neon" ] |
144 | 144 | } |
|