diff --git a/com.ibm.wala.cast.test/build.gradle b/com.ibm.wala.cast.test/build.gradle index 439d6d8cc..cf293a2b1 100644 --- a/com.ibm.wala.cast.test/build.gradle +++ b/com.ibm.wala.cast.test/build.gradle @@ -61,10 +61,13 @@ model { buildable = false } all { - // TODO: compute path on following line from 'cast' library properties somehow - linker.args '-Wl,-rpath', "${project(':com.ibm.wala.cast').buildDir}/libs/cast/shared" - // TODO: compute path on following line from 'jdk' library properties somehow - linker.args '-Wl,-rpath', "${currentJvm.javaHome}/jre/lib/amd64/server" + switch ("$targetPlatform.operatingSystem.name/$targetPlatform.architecture.name") { + case 'linux/x86-64': + // TODO: compute path on following line from 'cast' library properties somehow + linker.args '-Wl,-rpath', "${project(':com.ibm.wala.cast').buildDir}/libs/cast/shared" + // TODO: compute path on following line from 'jdk' library properties somehow + linker.args '-Wl,-rpath', "${currentJvm.javaHome}/jre/lib/amd64/server" + } } } } @@ -79,10 +82,13 @@ model { } } binaries.all { - // TODO: compute path on following line from 'cast' library properties somehow - linker.args '-Wl,-rpath', "${project(':com.ibm.wala.cast').buildDir}/libs/cast/shared" - // TODO: compute path on following line from 'jdk' library properties somehow - linker.args '-Wl,-rpath', "${currentJvm.javaHome}/jre/lib/amd64/server" + switch ("$targetPlatform.operatingSystem.name/$targetPlatform.architecture.name") { + case 'linux/x86-64': + // TODO: compute path on following line from 'cast' library properties somehow + linker.args '-Wl,-rpath', "${project(':com.ibm.wala.cast').buildDir}/libs/cast/shared" + // TODO: compute path on following line from 'jdk' library properties somehow + linker.args '-Wl,-rpath', "${currentJvm.javaHome}/jre/lib/amd64/server" + } } } } diff --git a/com.ibm.wala.cast/build.gradle b/com.ibm.wala.cast/build.gradle index aa26fc59f..78355107e 100644 --- a/com.ibm.wala.cast/build.gradle +++ b/com.ibm.wala.cast/build.gradle @@ -70,8 +70,11 @@ model { lib library: 'jdk' } binaries.all { - // TODO: compute path on following line from 'jdk' library properties somehow - linker.args '-Wl,-rpath', "$currentJavaHome/jre/lib/amd64/server" + switch ("$targetPlatform.operatingSystem.name/$targetPlatform.architecture.name") { + case 'linux/x86-64': + // TODO: compute path on following line from 'jdk' library properties somehow + linker.args '-Wl,-rpath', "$currentJavaHome/jre/lib/amd64/server" + } } } }