Index: Makefile.standalone |
diff --git a/Makefile.standalone b/Makefile.standalone |
index feae52cd913dac7faf576f71353714c66e9410e7..291b442818b622dfaacf8f3829645ac205e5d90e 100644 |
--- a/Makefile.standalone |
+++ b/Makefile.standalone |
@@ -86,12 +86,11 @@ CXXFLAGS := $(LLVM_CXXFLAGS) -std=c++11 -Wall -Wextra -Werror -fno-rtti \ |
-I$(LIBCXX_INSTALL_PATH)/include/c++/v1 |
LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib |
-SRCS= \ |
+SRCS = \ |
assembler.cpp \ |
assembler_ia32.cpp \ |
IceCfg.cpp \ |
IceCfgNode.cpp \ |
- IceConverter.cpp \ |
IceGlobalContext.cpp \ |
IceGlobalInits.cpp \ |
IceInst.cpp \ |
@@ -111,6 +110,10 @@ SRCS= \ |
llvm2ice.cpp \ |
PNaClTranslator.cpp |
+ifndef MINIMAL |
+ SRCS += IceConverter.cpp |
+endif |
+ |
OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) |
# Keep all the first target so it's the default. |
@@ -143,8 +146,13 @@ check-lit: llvm2ice make_symlink |
LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ |
$(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit |
+ifdef MINIMAL |
+check: check-lit |
+ @echo "Crosstests ignored, minimal build" |
+else |
check: check-lit |
(cd crosstest; ./runtests.sh) |
+endif |
# TODO: Fix the use of wildcards. |
# Assumes clang-format is within $PATH. |