mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-29 13:25:52 +01:00
9820436fbe
Touches a lot of code to remove long constants like "1L", so this patch is large and ugly, but I think it makes all those Clamp() calls look nicer in the long run. Most of the game is 64-bit clean, since we can build without assembly code now. I've marked the things that are obviously still wrong with STUBBED lines. That being said: a 64-bit build can already run the demos mostly correctly, so we're actually almost there! There are a few obvious things that are obviously wrong, to be fixed.
24 lines
529 B
Bash
Executable File
24 lines
529 B
Bash
Executable File
#!/bin/bash
|
|
|
|
NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l`
|
|
let NCPU=$NCPU+2
|
|
echo "Will build with 'make -j$NCPU' ... please edit this script if incorrect."
|
|
|
|
set -e
|
|
set -x
|
|
|
|
rm -rf cmake-build
|
|
mkdir $_
|
|
cd $_
|
|
#cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 ..
|
|
#ninja
|
|
|
|
# This is the eventual path for amd64.
|
|
#cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_I386_ASM=FALSE ..
|
|
|
|
# Right now we force x86, though...
|
|
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 ..
|
|
|
|
make -j$NCPU
|
|
|