Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: build/secondary/third_party/nss/BUILD.gn

Issue 913373002: Update Chomium's build files to work w/ latest GN binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_cpu_arch_changes
Patch Set: cleanup / review Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/secondary/third_party/nss/BUILD.gn
diff --git a/build/secondary/third_party/nss/BUILD.gn b/build/secondary/third_party/nss/BUILD.gn
index 768a85d87c95159fd25e1568671b67e92ed33dfd..926caddc3b0f4c8e2ba5624d9d037c28a19046ab 100644
--- a/build/secondary/third_party/nss/BUILD.gn
+++ b/build/secondary/third_party/nss/BUILD.gn
@@ -281,9 +281,9 @@ if (is_linux) {
]
}
- if (cpu_arch == "x86") {
+ if (current_cpu == "x86") {
defines += [ "_X86_" ]
- } else if (cpu_arch == "x64") {
+ } else if (current_cpu == "x64") {
defines += [ "_AMD64_" ]
}
@@ -474,7 +474,7 @@ if (is_linux) {
]
}
- if (is_win && cpu_arch == "x86") {
+ if (is_win && current_cpu == "x86") {
source_set("nss_static_avx") {
sources = [
"nss/lib/freebl/intel-gcm-wrap.c",
@@ -1094,7 +1094,7 @@ if (is_linux) {
defines += [ "NSS_DISABLE_ROOT_CERTS" ]
}
- if (cpu_arch == "x64" && !is_win) {
+ if (current_cpu == "x64" && !is_win) {
sources -= [
"nss/lib/freebl/chacha20/chacha20.c",
"nss/lib/freebl/poly1305/poly1305.c",
@@ -1139,7 +1139,7 @@ if (is_linux) {
"WIN95",
]
- if (cpu_arch == "x86") {
+ if (current_cpu == "x86") {
defines += [
"NSS_X86_OR_X64",
"NSS_X86",
@@ -1153,7 +1153,7 @@ if (is_linux) {
"INTEL_GCM",
]
sources -= [ "nss/lib/freebl/mpi/mpi_amd64.c" ]
- } else if (cpu_arch == "x64") {
+ } else if (current_cpu == "x64") {
sources -= [
"nss/lib/freebl/intel-aes-x86-masm.asm",
"nss/lib/freebl/mpi/mpi_amd64.c",
@@ -1204,7 +1204,7 @@ if (is_linux) {
"//third_party/sqlite",
]
- if (is_win && cpu_arch == "x86") {
+ if (is_win && current_cpu == "x86") {
deps += [ ":nss_static_avx" ]
}
}

Powered by Google App Engine
This is Rietveld 408576698