Skip to content

Commit 512c7cc

Browse files
committed
fix build error
1 parent 241efff commit 512c7cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/config/compiler/BUILD.gn

+3
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ config("runtime_default") {
380380
# 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
381381
# FYI, using the sysroot flag is only activated when pw_toolchain_OSS_FUZZ_ENABLED=false
382382
if (is_pw_fuzz == false) {
383+
if (!defined(libs)) {
384+
libs = []
385+
}
383386
libs += [ "atomic" ]
384387
}
385388

0 commit comments

Comments
 (0)