aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2022-11-24 15:46:55 +0900
committerMITSUNARI Shigeo <[email protected]>2022-11-24 15:48:06 +0900
commit5fcbeb7c4757caf77bde490356f68272f79ffca4 (patch)
treeccc884eb37ad7be5ac5092a39b5663f10e57ae9b
parentbafc1ee60f37ebdb27ea27cb92690070b76128d2 (diff)
downloadxbyak-5fcbeb7c4757caf77bde490356f68272f79ffca4.tar.gz
xbyak-5fcbeb7c4757caf77bde490356f68272f79ffca4.zip
[sample] change the way of detection of boost
-rw-r--r--sample/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/sample/Makefile b/sample/Makefile
index 7c910bb..9166360 100644
--- a/sample/Makefile
+++ b/sample/Makefile
@@ -1,6 +1,7 @@
XBYAK_INC=../xbyak/xbyak.h
+CXX?=g++
-BOOST_EXIST=$(shell echo "\#include <boost/spirit/core.hpp>" | (gcc -E - 2>/dev/null) | grep "boost/spirit/core.hpp" >/dev/null && echo "1")
+BOOST_EXIST=$(shell echo "#include <boost/spirit/core.hpp>" | $(CXX) -x c++ -c - 2>/dev/null && echo 1)
UNAME_M=$(shell uname -m)
ONLY_64BIT=0
@@ -104,7 +105,7 @@ profiler-vtune: profiler.cpp ../xbyak/xbyak_util.h
$(CXX) $(CFLAGS) profiler.cpp -o $@ -DXBYAK_USE_VTUNE -I /opt/intel/vtune_amplifier/include/ -L /opt/intel/vtune_amplifier/lib64 -ljitprofiling -ldl
clean:
- rm -rf *.o $(TARGET) *.exe profiler profiler-vtune
+ rm -rf $(TARGET) profiler profiler-vtune
test : test0.cpp $(XBYAK_INC)
test64: test0.cpp $(XBYAK_INC)