Fixed foreign import for linux. Modified .gitignore to ignore temp files and files in shared/. Added a Makefile for linux

This commit is contained in:
vassvik
2017-11-10 21:31:13 +01:00
parent bbddbba340
commit 9e0b69312b
5 changed files with 88 additions and 11 deletions
+7 -3
View File
@@ -1,15 +1,19 @@
#!/bin/bash
release_mode=0
release_mode=$1
warnings_to_disable="-std=c++11 -g -Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined -Wno-writable-strings"
warnings_to_disable="-std=c++11 -Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined -Wno-writable-strings"
libraries="-pthread -ldl -lm -lstdc++"
other_args=""
compiler="clang"
if [ "$release_mode" -eq "0" ]; then
other_args="${other_args} -g -fno-inline-functions"
other_args="${other_args} -g
fi
if [ "$release_mode" -eq "1" ]; then
other_args="${other_args} -O3 -march=native
fi
if [[ "$(uname)" == "Darwin" ]]; then
# Set compiler to clang on MacOS