Commit c6bbc15a authored by József Gyürüsi's avatar József Gyürüsi
Browse files

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


[internal #0] fix: makefile update patch to add -e -N to COMPILER_FLAGS (if not already there) to support new titan versions

Change-Id: I78a960527ed099354a52a0e301dfc0e29560622a
Signed-off-by: József Gyürüsi's avatarJózsef Gyürüsi <jozsef.gyurusi@ericsson.com>
parent 8461ce1c
......@@ -12,16 +12,16 @@
TTCN_COMPILER_SUPPORTS_E="$(compiler --help 2>&1 | grep "\-e:")"
TTCN_COMPILER_SUPPORTS_N="$(compiler --help 2>&1 | grep "\-N:")"
SED_CMD=""
if [[ "$TTCN_COMPILER_SUPPORTS_E" != "" ]]
then
TTCN_COMPILER_SUPPORTS_E='-e'
# only add if not already there:
SED_CMD=$(printf "$SED_CMD\n"'/-e/!s/COMPILER_FLAGS =/COMPILER_FLAGS = -e/g')
fi
if [[ "$TTCN_COMPILER_SUPPORTS_N" != "" ]]
then
TTCN_COMPILER_SUPPORTS_N='-N'
# only add if not already there:
SED_CMD=$(printf "$SED_CMD\n"'/-N/!s/COMPILER_FLAGS =/COMPILER_FLAGS = -N/g')
fi
# 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_N" | sed -e "$SED_CMD_E"
sed -e "$SED_CMD"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment