Skip to content

Commit

Permalink
Add target sanity-check
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24583 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 15, 2015
1 parent 257f828 commit eb336e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Makefile.common
Expand Up @@ -431,3 +431,6 @@ build/share/omc/java/org.omc.graphstream.jar: mkbuilddirs

graphstream-clean:
if test -f 3rdParty/graphstream/Makefile; then $(MAKE) -C 3rdParty/graphstream/ clean; fi

sanity-check: omc
build/bin/omc Examples/SanityCheck.mos
7 changes: 1 addition & 6 deletions configure.in
Expand Up @@ -147,12 +147,7 @@ fi
fi

# GCC 4.8 generates bad code with some optimisation flags. Let's try to disable them.
for flag in -fno-tree-ch -fno-tree-vrp -fno-tree-pre; do
OLD_CFLAGS="$CFLAGS"
CFLAGS="$RUNTIMECFLAGS $flag -Werror"
AC_TRY_LINK([], [return 0;], [CFLAGS="$OLD_CFLAGS $flag"],[CFLAGS="$OLD_CFLAGS"])
done
for flag in -fno-stack-protector; do
for flag in -fno-tree-ch -fno-tree-vrp -fno-tree-pre -fno-stack-protector; do
OLD_CFLAGS="$CFLAGS"
CFLAGS="$RUNTIMECFLAGS $flag -Werror"
AC_TRY_LINK([], [return 0;], [CFLAGS="$OLD_CFLAGS $flag"],[CFLAGS="$OLD_CFLAGS"])
Expand Down

0 comments on commit eb336e8

Please sign in to comment.