Skip to content
Snippets Groups Projects

[internal #0] makefile update patch to add -e -N to COMPILER_FLAGS (if not...

Merged József Gyürüsi requested to merge jgyrsi/titan.Libraries.CLL:master into master
1 file
+ 5
3
Compare changes
  • Side-by-side
  • Inline
@@ -5,7 +5,7 @@
@@ -5,7 +5,7 @@
#// All rights reserved. This program and the accompanying materials //
#// All rights reserved. This program and the accompanying materials //
#// are made available under the terms of the Eclipse Public License v2.0 //
#// are made available under the terms of the Eclipse Public License v2.0 //
#// which accompanies this distribution, and is available at //
#// which accompanies this distribution, and is available at //
#// https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html //
#// https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html //
#///////////////////////////////////////////////////////////////////////////////
#///////////////////////////////////////////////////////////////////////////////
# if -e or -N compiler flag is supported, it is needed
# if -e or -N compiler flag is supported, it is needed
@@ -20,6 +20,8 @@ if [[ "$TTCN_COMPILER_SUPPORTS_N" != "" ]]
@@ -20,6 +20,8 @@ if [[ "$TTCN_COMPILER_SUPPORTS_N" != "" ]]
then
then
TTCN_COMPILER_SUPPORTS_N='-N'
TTCN_COMPILER_SUPPORTS_N='-N'
fi
fi
SED_CMD="s/COMPILER_FLAGS =/COMPILER_FLAGS = $TTCN_COMPILER_SUPPORTS_E $TTCN_COMPILER_SUPPORTS_N/g"
# only add if not already there:
 
SED_CMD_N="/$TTCN_COMPILER_SUPPORTS_N/!s/COMPILER_FLAGS =/COMPILER_FLAGS = $TTCN_COMPILER_SUPPORTS_N/g"
 
SED_CMD_E="/$TTCN_COMPILER_SUPPORTS_E/!s/COMPILER_FLAGS =/COMPILER_FLAGS = $TTCN_COMPILER_SUPPORTS_E/g"
sed -e "$SED_CMD"
sed -e "$SED_CMD_N" | sed -e "$SED_CMD_E"
Loading