소스 검색

Merge pull request #51427 from omar-polo/platform-detect-openbsd

automatically detect openbsd as platform=linuxbsd
Rémi Verschelde 4 년 전
부모
커밋
25fd4edd29
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      SConstruct

+ 7 - 1
SConstruct

@@ -201,7 +201,13 @@ elif env_base["p"] != "":
     selected_platform = env_base["p"]
 else:
     # Missing `platform` argument, try to detect platform automatically
-    if sys.platform.startswith("linux"):
+    if (
+        sys.platform.startswith("linux")
+        or sys.platform.startswith("dragonfly")
+        or sys.platform.startswith("freebsd")
+        or sys.platform.startswith("netbsd")
+        or sys.platform.startswith("openbsd")
+    ):
         selected_platform = "linuxbsd"
     elif sys.platform == "darwin":
         selected_platform = "osx"