File tree 1 file changed +4
-3
lines changed
src/bootstrap/src/core/build_steps
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -407,18 +407,19 @@ impl Step for Llvm {
407
407
cfg. define ( "LLVM_LINK_LLVM_DYLIB" , "ON" ) ;
408
408
}
409
409
410
- if ( target. starts_with ( "riscv" ) || target. starts_with ( "csky " ) )
410
+ if ( target. starts_with ( "csky" ) || target . starts_with ( " riscv") || target. starts_with ( "sparc- " ) )
411
411
&& !target. contains ( "freebsd" )
412
412
&& !target. contains ( "openbsd" )
413
413
&& !target. contains ( "netbsd" )
414
414
{
415
- // RISC-V and CSKY GCC erroneously requires linking against
415
+ // CSKY and RISC-V GCC erroneously requires linking against
416
416
// `libatomic` when using 1-byte and 2-byte C++
417
417
// atomics but the LLVM build system check cannot
418
418
// detect this. Therefore it is set manually here.
419
419
// Some BSD uses Clang as its system compiler and
420
420
// provides no libatomic in its base system so does
421
- // not want this.
421
+ // not want this. 32-bit SPARC requires linking against
422
+ // libatomic as well.
422
423
ldflags. exe . push ( " -latomic" ) ;
423
424
ldflags. shared . push ( " -latomic" ) ;
424
425
}
You can’t perform that action at this time.
0 commit comments