We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 800f1fa commit 53f7aa0Copy full SHA for 53f7aa0
linux-build.sh
@@ -1,6 +1,13 @@
1
#!/bin/bash
2
3
-PREMAKE5=utils/premake5
+# Find premake binary location
4
+if [ "$(uname)" == "Darwin" ]; then
5
+ PREMAKE5=utils/premake5-macos
6
+else
7
+ PREMAKE5=utils/premake5
8
+fi
9
+
10
+# 32bit vs 64bit
11
if [[ $1 = "32" ]]; then
12
CONFIG=release_x86
13
else
@@ -14,7 +21,13 @@ rm -Rf Bin/
14
21
# Generate makefiles
15
22
$PREMAKE5 gmake
16
23
24
+# Number of cores
25
26
+ NUM_CORES=$(sysctl -n hw.ncpu)
27
28
+ NUM_CORES=$(grep -c ^processor /proc/cpuinfo)
29
30
17
31
# Build!
18
-NUM_CORES=$(grep -c ^processor /proc/cpuinfo)
19
32
cd Build/
20
33
make -j$NUM_CORES config=$CONFIG all
utils/premake5-macos
1.08 MB
0 commit comments