Commit 348e446f authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #430 from arbipher/master

split cmake_check to cmake_check and clang_check
parents 23824449 d4f2e52d
......@@ -858,8 +858,10 @@ pyston_profile: $(PROFILE_OBJS) $(LLVM_PROFILE_DEPS)
$(ECHO) Linking $@
$(VERB) $(CXX) $(PROFILE_OBJS) $(LDFLAGS_PROFILE) -o $@
cmake_check:
clang_check:
@clang --version >/dev/null || (echo "clang not available"; false)
cmake_check:
@cmake --version >/dev/null || (echo "cmake not available"; false)
@ninja --version >/dev/null || (echo "ninja not available"; false)
......@@ -873,13 +875,15 @@ CMAKE_DIR_DBG := $(HOME)/pyston-build-dbg
CMAKE_DIR_RELEASE := $(HOME)/pyston-build-release
CMAKE_SETUP_DBG := $(CMAKE_DIR_DBG)/build.ninja
CMAKE_SETUP_RELEASE := $(CMAKE_DIR_RELEASE)/build.ninja
.PHONY: cmake_check
.PHONY: cmake_check clang_check
$(CMAKE_SETUP_DBG):
@$(MAKE) cmake_check
@$(MAKE) clang_check
@mkdir -p $(CMAKE_DIR_DBG)
cd $(CMAKE_DIR_DBG); CC='clang' CXX='clang++' cmake -GNinja $(HOME)/pyston -DCMAKE_BUILD_TYPE=Debug
$(CMAKE_SETUP_RELEASE):
@$(MAKE) cmake_check
@$(MAKE) clang_check
@mkdir -p $(CMAKE_DIR_RELEASE)
cd $(CMAKE_DIR_RELEASE); CC='clang' CXX='clang++' cmake -GNinja $(HOME)/pyston -DCMAKE_BUILD_TYPE=Release
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment