mirror of
https://github.com/nasa/trick.git
synced 2025-06-23 01:08:52 +00:00
Sim build doesn't stop on error #421
When I added the "tee" commands to split off command outputs to a file and the screen, I forgot that the exit status of the make commands takes the exit status of "tee" which does not ususally have an error and masks any error in the actual compilation. I added an exit ${PIPESTATUS[0]} which returns the exit status of the compilation.
This commit is contained in:
@ -386,7 +386,7 @@ void PrintAttributes::printIOMakefile() {
|
||||
<< "$(IO_OBJECTS): \%.o : \%.cpp \%.d" << std::endl
|
||||
<< "\t$(PRINT_COMPILE)" << std::endl
|
||||
<< "\t@echo $(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -MMD -MP -c -o $@ $< >> $(MAKE_OUT)" << std::endl
|
||||
<< "\t$(ECHO_CMD)$(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -MMD -MP -c -o $@ $< 2>&1 | $(TEE) -a $(MAKE_OUT)" << std::endl
|
||||
<< "\t$(ECHO_CMD)$(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -MMD -MP -c -o $@ $< 2>&1 | $(TEE) -a $(MAKE_OUT) ; exit $${PIPESTATUS[0]}" << std::endl
|
||||
<< std::endl
|
||||
<< "$(IO_OBJECTS:.o=.d): ;" << std::endl
|
||||
<< std::endl
|
||||
|
Reference in New Issue
Block a user