31 lines
920 B
Diff
31 lines
920 B
Diff
|
From: uazo <uazo@users.noreply.github.com>
|
||
|
Date: Tue, 11 Jan 2022 13:59:32 +0000
|
||
|
Subject: Do not link with libatomic
|
||
|
|
||
|
Compiler has built-in support thus libatomic linking is no more needed
|
||
|
This patch allows building with use_sysroot=false
|
||
|
|
||
|
Original License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||
|
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
||
|
|
||
|
Change-Id: Iabc6c90b66fbd9a95d8f11867411ac206ae01533
|
||
|
---
|
||
|
base/BUILD.gn | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
||
|
--- a/base/BUILD.gn
|
||
|
+++ b/base/BUILD.gn
|
||
|
@@ -1107,7 +1107,7 @@ component("base") {
|
||
|
# more robust check for this.
|
||
|
if (!use_sysroot && (is_android || is_chromeos || (is_linux && !is_castos)) &&
|
||
|
host_toolchain != "//build/toolchain/cros:host") {
|
||
|
- libs += [ "atomic" ]
|
||
|
+ #libs += [ "atomic" ]
|
||
|
}
|
||
|
|
||
|
if (use_allocator_shim) {
|
||
|
--
|
||
|
2.40.1
|
||
|
|