mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Implement the LLVM_DO_NOT_BUILD feature. If a file of that name is
present in a directory that LLVM normally builds, it will skip building the directory entirely. This is useful for allowing a bunch of projects to live in the source tree but not be compiled from time to time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a0cd9c9b5
commit
a23c0662dc
@ -231,7 +231,6 @@ ifdef TOOL_VERBOSE
|
||||
CXX.Flags += -v
|
||||
LD.Flags += -v
|
||||
VERBOSE := 1
|
||||
else
|
||||
endif
|
||||
|
||||
# Adjust settings for verbose mode
|
||||
@ -370,7 +369,9 @@ $(RecursiveTargets)::
|
||||
$(MKDIR) $$dir; \
|
||||
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
|
||||
fi; \
|
||||
($(MAKE) -C $$dir $@ ) || exit 1; \
|
||||
if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
|
||||
($(MAKE) -C $$dir $@ ) || exit 1; \
|
||||
fi ; \
|
||||
done
|
||||
endif
|
||||
|
||||
@ -385,7 +386,9 @@ $(RecursiveTargets)::
|
||||
$(MKDIR) $$dir; \
|
||||
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
|
||||
fi; \
|
||||
($(MAKE) -C $$dir $@ ) || exit 0; \
|
||||
if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
|
||||
($(MAKE) -C $$dir $@ ) || exit 0; \
|
||||
fi ; \
|
||||
done
|
||||
endif
|
||||
|
||||
@ -411,7 +414,9 @@ $(ParallelTargets) :
|
||||
$(MKDIR) $(@D); \
|
||||
cp $(BUILD_SRC_DIR)/$(@D)/Makefile $(@D)/Makefile; \
|
||||
fi; \
|
||||
$(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
|
||||
if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
|
||||
$(MAKE) -C $(@D) $(subst $(@D)/.make,,$@) ; \
|
||||
fi
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------
|
||||
@ -429,7 +434,9 @@ $(RecursiveTargets)::
|
||||
$(MKDIR) $$dir; \
|
||||
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
|
||||
fi; \
|
||||
($(MAKE) -C$$dir $@ ) || exit 1; \
|
||||
if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
|
||||
($(MAKE) -C$$dir $@ ) || exit 1; \
|
||||
fi ; \
|
||||
fi \
|
||||
done
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user