summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshaka <[email protected]>2019-02-22 07:39:19 +0900
committershaka <[email protected]>2019-02-22 07:39:19 +0900
commit41931397c001371e5b464fa944b8f739a7656aa6 (patch)
treed79a599f2a4ae807862488c8d2e5b1c82601cd97
parent3c1923606c7b5391678b7a760772c8e55f046025 (diff)
darwin include 'win'
-rw-r--r--qbuild/src/Builder.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/qbuild/src/Builder.php b/qbuild/src/Builder.php
index 5568d725..4b441094 100644
--- a/qbuild/src/Builder.php
+++ b/qbuild/src/Builder.php
@@ -137,14 +137,14 @@ final class Builder
{
$os = strtolower(PHP_OS);
- if (strpos($os, 'win') !== false) {
- return 'windows';
- }
-
if (strpos($os, 'darwin') !== false) {
return 'darwin';
}
+ if (strpos($os, 'win') !== false) {
+ return 'windows';
+ }
+
return "linux";
}
@@ -234,4 +234,4 @@ final class Builder
return false;
}
}
-} \ No newline at end of file
+}