Skip to content

Commit 2fc357e

Browse files
authored
Merge pull request #479 from Microsoft/detect_os
Changing to a more reliable way to detect os for build
2 parents ea91b79 + 166a3fc commit 2fc357e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ plugins {
2424

2525
apply from: "$buildScriptsDir/common-java.gradle"
2626
apply from: "$buildScriptsDir/publishing.gradle"
27-
if (System.env."windir" != null) {
27+
28+
import org.apache.tools.ant.taskdefs.condition.Os
29+
30+
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
2831
apply from: "native.gradle"
2932
} else {
3033
logger.warn("Native binaries build is only supported on Windows systems; native components will not be built.")

0 commit comments

Comments
 (0)