Changeset 6363ad1


Ignore:
Timestamp:
Mar 8, 2017, 3:19:38 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
65e9bc1, be8bd88
Parents:
796cea3
Message:

Disable program transform since they always break stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r796cea3 r6363ad1  
    1919
    2020# Allow program name tansformation
    21 # will fille program_transform_name with appropriate sed regex
     21# will fill program_transform_name with appropriate sed regex
    2222AC_ARG_PROGRAM
    23 #autoconf escapes $ and \ since automake wiill un-escape them.
    24 #Since we need to use the sed transform in autoconf we need to manualy un-escape these characters
    25 name_transform=`echo ${program_transform_name} | sed 's/\\$\\$/\\$/g' | sed 's/\\\\\\\/\\\/g'`
    26 cfa_name=`echo cfa | sed ${name_transform}`
    27 cc1_name=`echo cc1 | sed ${name_transform}`
    28 cpp_name=`echo cfa-cpp | sed ${name_transform}`
    2923
    3024#Trasforming cc1 will break compilation
    31 if ! test "${cc1_name}" = "cc1"; then
    32     AC_MSG_ERROR([Program transform must not modify cc1.
    33                 --program-sufix and --program-prefix not supported.
    34                 Use -program-transform-name='s/cfa$/[[Desired name here]]/' instead])
    35 fi
    36 #We could support transforming cfa-cpp but since it is located in a unique subfolder we don't need to
    37 if ! test "${cpp_name}" = "cfa-cpp"; then
    38     AC_MSG_ERROR([Program transform must not modify cfa-cpp.
    39                 --program-sufix and --program-prefix not supported.
    40                 Use -program-transform-name='s/cfa$/[[Desired name here]]/' instead])
     25if ! test "${program_transform_name}" = ""; then
     26    AC_MSG_ERROR([Program transform not supported.
     27                Use --with-cfa-name='[[Desired name here]]' instead])
    4128fi
    4229
Note: See TracChangeset for help on using the changeset viewer.