Skip to content

Commit

Permalink
Patch _main.c twice
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24735 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 24, 2015
1 parent 02642a9 commit e39faa2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Compiler/boot/Makefile.common
Expand Up @@ -18,15 +18,19 @@ generate-files-in-steps:

GEN_DIR=build/

PATCH_SOURCES=sed -i 's/ = omc_assert_function/__attribute__((noreturn)) = omc_assert_function/' build/_main.c

bootstrap-from-tarball:
$(MAKE) -f $(defaultMakefileTarget) clean OMC=.omc
tar xJf bootstrap-sources.tar.xz
# Patch _main.c to avoid a new tarball
sed -i "s/ = omc_assert_function/__attribute__((noreturn)) = omc_assert_function/" build/_main.c
$(PATCH_SOURCES)
$(MAKE) -f $(defaultMakefileTarget) install INCLUDESOURCES=1 OMC=.omc
@echo "Bootstrapping phase 1/3 completed"
$(MAKE) -f $(defaultMakefileTarget) clean OMC=$(BOOTSTRAP_OMC)
$(MAKE) -f $(defaultMakefileTarget) generate-files-in-steps OMC=$(BOOTSTRAP_OMC)
# Patch _main.c to avoid a new tarball
$(PATCH_SOURCES)
$(MAKE) -f $(defaultMakefileTarget) install INCLUDESOURCES=1 OMC=$(BOOTSTRAP_OMC)
@echo "Bootstrapping phase 2/3 completed"
$(MAKE) -f $(defaultMakefileTarget) clean OMC=$(BOOTSTRAP_OMC)
Expand Down

0 comments on commit e39faa2

Please sign in to comment.