aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorMike McQuaid2018-02-21 09:48:36 +0000
committerGitHub2018-02-21 09:48:36 +0000
commit09c5be86b615de6ed36bb2163eb98a0cb3c7cb43 (patch)
tree41051c1e0a8f6ae52e4ce74f3fcae582ed908941 /Library/Homebrew/os
parent77e2478555b4f8d143f98907ed1f55f71b7a6af7 (diff)
parent157f84a74d4274f1fcfc73eda94a819cb68df944 (diff)
downloadbrew-09c5be86b615de6ed36bb2163eb98a0cb3c7cb43.tar.bz2
Merge pull request #3820 from sjackman/macos-version
Define OS::Mac on Linux
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/linux.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Homebrew/os/linux.rb b/Library/Homebrew/os/linux.rb
new file mode 100644
index 000000000..e5af301b2
--- /dev/null
+++ b/Library/Homebrew/os/linux.rb
@@ -0,0 +1,28 @@
+module OS
+ # Define OS::Mac on Linux for formula API compatibility.
+ module Mac
+ module_function
+
+ ::MacOS = self # rubocop:disable Naming/ConstantName
+
+ def prefer_64_bit?
+ Hardware::CPU.is_64_bit?
+ end
+
+ def version
+ Version::NULL
+ end
+
+ def full_version
+ Version::NULL
+ end
+
+ module Xcode
+ module_function
+
+ def version
+ Version::NULL
+ end
+ end
+ end
+end