aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2019-12-05 14:21:36 +0000
committerbloodstalker <thabogre@gmail.com>2019-12-05 14:21:36 +0000
commit398fd5f129db52063893098454f99b09633f0054 (patch)
tree2b37059e347bc9c9b82cdd62b8083a3d1d320841 /bruiser
parentappveyor badge [travis skip] (diff)
downloadmutator-398fd5f129db52063893098454f99b09633f0054.tar.gz
mutator-398fd5f129db52063893098454f99b09633f0054.zip
fixing m0s builds for all llvm versions, added a windows cygwin build test on appveyor
Diffstat (limited to 'bruiser')
-rw-r--r--bruiser/autogen/wasm/ft/makefile4
-rw-r--r--bruiser/autogen/wasm/ltg/makefile4
-rw-r--r--bruiser/makefile8
3 files changed, 16 insertions, 0 deletions
diff --git a/bruiser/autogen/wasm/ft/makefile b/bruiser/autogen/wasm/ft/makefile
index 08e0ffe..1ee85d2 100644
--- a/bruiser/autogen/wasm/ft/makefile
+++ b/bruiser/autogen/wasm/ft/makefile
@@ -3,7 +3,11 @@ SHELL=bash
SHELL?=bash
CC=clang
CC?=clang
+ifdef OS
+CC_FLAGS=
+else
CC_FLAGS= -fPIC
+endif
CC_EXTRA?=
CTAGS_I_PATH?=./
LD_FLAGS=
diff --git a/bruiser/autogen/wasm/ltg/makefile b/bruiser/autogen/wasm/ltg/makefile
index 41d6c5a..7f06195 100644
--- a/bruiser/autogen/wasm/ltg/makefile
+++ b/bruiser/autogen/wasm/ltg/makefile
@@ -3,7 +3,11 @@ SHELL=bash
SHELL?=bash
CC=clang
CC?=clang
+ifdef OS
+CC_FLAGS=
+else
CC_FLAGS= -fPIC
+endif
CC_EXTRA?=
CTAGS_I_PATH?=./
LD_FLAGS=
diff --git a/bruiser/makefile b/bruiser/makefile
index 2e29fd1..48f54cb 100644
--- a/bruiser/makefile
+++ b/bruiser/makefile
@@ -14,10 +14,18 @@ SHELL=bash
SHELL?=bash
CC=clang
CC?=clang
+ifdef OS
+CC_FLAGS= $(shell $(PY_CONF) --includes)
+else
CC_FLAGS=-fpic $(shell $(PY_CONF) --includes)
+endif
CXX=clang++
CXX?=clang++
+ifdef OS
+CXX_FLAGS= -I/usr/include $(shell $(PY_CONF) --includes)
+else
CXX_FLAGS=-fpic -I/usr/include $(shell $(PY_CONF) --includes)
+endif
CXX_EXTRA?=
CTAGS_I_PATH?=./
LD_FLAGS=-v