build: refactor platform checks
also improve verbosity when downloading dependencies fails
This commit is contained in:
committed by
SvyatoslavScherbina
parent
720947facb
commit
bee2a76008
@@ -92,7 +92,7 @@ String[] linkerOpts1() {
|
||||
'-lLLVMCore',
|
||||
'-lLLVMSupport']
|
||||
List<String> ldflags = new ArrayList<>()
|
||||
if (System.properties['os.name'].startsWith("Linux"))
|
||||
if (isLinux())
|
||||
ldflags.addAll(["-L$llvmDir/lib",
|
||||
"-Wl,-Bstatic", "-Wl,--whole-archive"]
|
||||
+ libs
|
||||
|
||||
Reference in New Issue
Block a user