Skip to content

Commit 2b9ffe6

Browse files
committed
fix error related to latomic
1 parent 241efff commit 2b9ffe6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build/config/compiler/BUILD.gn

+7-7
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ config("runtime_default") {
373373
"pthread",
374374
"rt",
375375
]
376-
}
377376

378-
#TODO: see what to do with this workaround
379-
# work around because when building pw_fuzzer, the downstreamed pw_fuzzer toolchain makes us use --sysroot flag in the clang++ invocation; the sysroot flag points to the "clang_sysroot" subdirectory of the CIPD environemnt,
380-
# the clang_sysroot folder is populated from CIPD (fuchsia/third_party/sysroot/linux) which does not include the libatomic library and makes the FuzzTest linking fail
381-
# FYI, using the sysroot flag is only activated when pw_toolchain_OSS_FUZZ_ENABLED=false
382-
if (is_pw_fuzz == false) {
383-
libs += [ "atomic" ]
377+
#TODO: see what to do with this workaround
378+
# work around because when building pw_fuzzer, the downstreamed pw_fuzzer toolchain makes us use --sysroot flag in the clang++ invocation; the sysroot flag points to the "clang_sysroot" subdirectory of the CIPD environemnt,
379+
# the clang_sysroot folder is populated from CIPD (fuchsia/third_party/sysroot/linux) which does not include the libatomic library and makes the FuzzTest linking fail
380+
# FYI, using the sysroot flag is only activated when pw_toolchain_OSS_FUZZ_ENABLED=false
381+
if (is_pw_fuzz == false) {
382+
libs += [ "atomic" ]
383+
}
384384
}
385385

386386
cflags = []

0 commit comments

Comments
 (0)