mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:06:21 +01:00
Fixed Makefile-based install to place python packages in the LLDB install tree.
Failure to install python packages now fails the make install. This patch properly handles the optional DESTDIR variable. Patch by Todd Fiala llvm-svn: 196624
This commit is contained in:
@@ -89,6 +89,11 @@ do
|
||||
|
||||
|
||||
./finish-swig-${curlang}-LLDB.sh $SRC_ROOT $TARGET_DIR $CONFIG_BUILD_DIR "${PREFIX}" "${debug_flag}" "${makefile_flag}"
|
||||
retval=$?
|
||||
if [ $retval -ne 0 ]; then
|
||||
echo "$(pwd)/finish-swig-${curlang}-LLDB.sh failed with exit code $retval"
|
||||
exit $retval
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -35,7 +35,7 @@ LLDBWrapPython.cpp lldb.py: $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/modify-
|
||||
|
||||
install-local:: lldb.py
|
||||
$(Echo) Installing $(BuildMode) LLDB python modules
|
||||
$(Verb) "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/finish-swig-wrapper-classes.sh" "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)" "$(PROJ_OBJ_DIR)" "$(PROJ_OBJ_DIR)" "" -m
|
||||
$(Verb) "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/finish-swig-wrapper-classes.sh" "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)" "$(PROJ_OBJ_DIR)" "$(PROJ_OBJ_DIR)" "$(DESTDIR)$(prefix)" -m
|
||||
|
||||
clean-local::
|
||||
$(Verb) $(RM) -f LLDBWrapPython.cpp lldb.py
|
||||
|
||||
Reference in New Issue
Block a user