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