build: refactor platform checks

also improve verbosity when downloading dependencies fails
This commit is contained in:
Svyatoslav Scherbina
2016-11-11 16:36:46 +07:00
committed by SvyatoslavScherbina
parent 720947facb
commit bee2a76008
4 changed files with 40 additions and 16 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -83,7 +83,7 @@ abstract class KonanTest extends DefaultTask {
}
private linux() {
return System.properties['os.name'].startsWith('Linux')
return project.isLinux()
}
protected String linkDl() {