Skip to content

Commit

Permalink
BUILD: Remove unnecessary use of heredoc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover authored and ccawley2011 committed Aug 24, 2018
1 parent b6d44d2 commit 346ed3f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions configure
Expand Up @@ -2132,9 +2132,7 @@ esac
# If possible, we want to use -Wglobal-constructors
# However, not all compilers support that, so check whether the active one does.
echocheck "whether C++ compiler accepts -Wglobal-constructors"
cat > $TMPC << EOF
int main() { return 0; }
EOF
echo "int main() { return 0; }" > $TMPC
cc_check -Wglobal-constructors -Werror && _global_constructors=yes

if test "$_global_constructors" = yes; then
Expand All @@ -2149,9 +2147,7 @@ echo $_global_constructors
# Note: we check the -Wundefined-var-template as gcc does not error out on unknown
# -Wno-xxx flags.
echocheck "whether C++ compiler accepts -Wno-undefined-var-template"
cat > $TMPC << EOF
int main() { return 0; }
EOF
echo "int main() { return 0; }" > $TMPC
cc_check -Wundefined-var-template -Werror && _no_undefined_var_template=yes

if test "$_no_undefined_var_template" = yes; then
Expand Down Expand Up @@ -3720,9 +3716,7 @@ add_to_config_mk_if_yes "$_verbose_build" 'VERBOSE_BUILD = 1'
# Check whether to enable optimizations
#
echo_n "Checking best optimization level... "
cat > $TMPC << EOF
int main() { return 0; }
EOF
echo "int main() { return 0; }" > $TMPC
if test "$_optimizations" = yes ; then
if test -z "$_optimization_level" ; then
# For pretty much all systems, -Os is the best level if it is supported
Expand Down

0 comments on commit 346ed3f

Please sign in to comment.