Skip to content

Commit

Permalink
OSX is always special
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24745 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Henning Kiel committed Feb 24, 2015
1 parent f59da89 commit d4c85da
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Compiler/boot/Makefile.common
@@ -1,3 +1,14 @@
ifeq ($(OS),Windows_NT)
SED = sed
else
UNAME := $(shell uname)
ifeq ($(UNAME),Darwin)
SED = gsed
else
SED = sed
endif
endif

ifeq ($(wildcard $(OMC)),)
all:
$(MAKE) -f $(defaultMakefileTarget) bootstrap-from-tarball
Expand All @@ -18,7 +29,7 @@ generate-files-in-steps:

GEN_DIR=build/

PATCH_SOURCES=sed -i 's/ = omc_assert_function/__attribute__((noreturn)) = omc_assert_function/' build/_main.c
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
Expand Down

0 comments on commit d4c85da

Please sign in to comment.