Files
cromite/build/patches/Do-not-link-with-libatomic.patch
2022-05-28 12:06:53 +02:00

25 lines
696 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
---
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
@@ -1488,7 +1488,7 @@ mixed_component("base") {
if (!use_sysroot &&
(is_android || ((is_linux || is_chromeos) && !is_chromecast)) &&
host_toolchain != "//build/toolchain/cros:host") {
- libs += [ "atomic" ]
+ #libs += [ "atomic" ]
}
if (use_allocator_shim) {
--
2.25.1