diff --git a/build.sh b/build.sh index a1671fd..5703287 100755 --- a/build.sh +++ b/build.sh @@ -15,11 +15,13 @@ make -C gcc clean make -C gcc old $CCOPT $CXXOPT mv gcc/old_agbcc . make -C gcc clean -make -C gcc $CCOPT $CXXOPT +make -C gcc normal $CCOPT $CXXOPT mv gcc/agbcc . # not sure if the ARM compiler is the old one or the new one (-DOLD_COMPILER) -rm -f gcc_arm/config.status gcc_arm/config.cache -cd gcc_arm && ./configure --target=arm-elf --host=i386-linux-gnu && make cc1 && cd .. +# || true is needed to keep going if the distclean fails, such as when no configure has been done before +make -C gcc_arm distclean || true +cd gcc_arm && ./configure --target=arm-elf --host=i386-linux-gnu && cd .. +make -C gcc_arm cc1 mv gcc_arm/cc1 agbcc_arm make -C libgcc clean make -C libgcc $CCOPT $CXXOPT diff --git a/gcc/Makefile b/gcc/Makefile index 9756e90..bcafcc4 100644 --- a/gcc/Makefile +++ b/gcc/Makefile @@ -81,7 +81,7 @@ $(OBJS): %.o: %.c $(DEPDIR)/%.d | $(GENERATED) $(COMPILE) $< $(POSTCOMPILE) -$(RTL_OBJS) $(RTLANAL_OBJS) $(PRINT_OBJS): %.o: %.c $(DEPDIR)/%.d +$(RTL_OBJS) $(RTLANAL_OBJS) $(PRINT_OBJS): %.o: %.c $(DEPDIR)/%.d genrtl.h $(COMPILE) $< $(POSTCOMPILE)