Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
correct detextion of empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Oct 18, 2020
1 parent 5f4d0b1 commit a913bbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build/bin/sage-build-env.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export ORIGINAL_CXXFLAGS="$CXXFLAGS"
export ORIGINAL_FCFLAGS="$FCFLAGS"
export ORIGINAL_F77FLAGS="$F77FLAGS"

if [ -n "$ORIGINAL_CFLAGS" ]; then
if [ "x$ORIGINAL_CFLAGS" == "x" ]; then
# Evaluate SAGE_DEBUG:
if [ "$SAGE_DEBUG" == "yes" ]; then
if [ "x$SAGE_DEBUG" == "xyes" ]; then
export CFLAGS="-Og -g"
export CFLAGS_O3="-Og -g"
elif [ "$SAGE_DEBUG" == "no" ]; then
elif [ "x$SAGE_DEBUG" == "xno" ]; then
export CFLAGS="-O2"
export CFLAGS_O3="-O3"
else
Expand All @@ -58,7 +58,7 @@ else
fi

# Copy to CXXFLAGS if this is not set.
if [ -n "$ORIGINAL_CXXFLAGS" ]; then
if [ "x$ORIGINAL_CXXFLAGS" == "x" ]; then
export CXXFLAGS="$CFLAGS"
export CXXFLAGS_O3="$CFLAGS_O3"
else
Expand All @@ -67,7 +67,7 @@ else
fi

# Copy CFLAGS to FCFLAGS if this is not set.
if [ -n "$ORIGINAL_FCFLAGS" ]; then
if [ "x$ORIGINAL_FCFLAGS" == "x" ]; then
export FCFLAGS="$CFLAGS"
export FCFLAGS_O3="$CFLAGS_O3"
else
Expand All @@ -76,7 +76,7 @@ else
fi

# Copy FCFLAGS to F77FLAGS if this is not set.
if [ -n "$ORIGINAL_F77FLAGS" ]; then
if [ "x$ORIGINAL_F77FLAGS" == "x" ]; then
export F77FLAGS="$FCFLAGS"
export F77FLAGS_O3="$FCFLAGS_O3"
else
Expand Down

0 comments on commit a913bbd

Please sign in to comment.