Changeset 795e2bf in mainline for tools/autotool.py


Ignore:
Timestamp:
2015-03-15T15:31:49Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e4c5f0, 58775d30, eec5795
Parents:
c12f891
Message:

revive clang support
generate autotool and autogen probe sources in a more compatible manner
cstyle fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    rc12f891 r795e2bf  
    8888        AUTOTOOL_DECLARE("floatsize", "", tag, #type, "", "", sizeof(type));
    8989
     90extern int main(int, char *[]);
     91
    9092int main(int argc, char *argv[])
    9193{
     
    115117        AUTOTOOL_DECLARE("intsize", "signed", tag, #type, "", "", sizeof(signed type));
    116118
     119extern int main(int, char *[]);
     120
    117121int main(int argc, char *argv[])
    118122{
     
    216220                if (config['CROSS_TARGET'] == "arm32"):
    217221                        gnu_target = "arm-linux-gnueabi"
    218                         clang_target = "arm-unknown-linux"
     222                        clang_target = "arm-unknown-none"
    219223                        helenos_target = "arm-helenos-gnueabi"
    220224               
    221225                if (config['CROSS_TARGET'] == "ia32"):
    222226                        gnu_target = "i686-pc-linux-gnu"
    223                         clang_target = "i386-unknown-linux"
     227                        clang_target = "i686-unknown-none"
    224228                        helenos_target = "i686-pc-helenos"
    225229               
    226230                if (config['CROSS_TARGET'] == "mips32"):
     231                        cc_args.append("-mabi=32")
    227232                        gnu_target = "mipsel-linux-gnu"
    228                         clang_target = "mipsel-unknown-linux"
     233                        clang_target = "mipsel-unknown-none"
    229234                        helenos_target = "mipsel-helenos"
    230                         common['CC_ARGS'].append("-mabi=32")
    231235       
    232236        if (config['PLATFORM'] == "amd64"):
    233237                target = config['PLATFORM']
    234238                gnu_target = "amd64-linux-gnu"
    235                 clang_target = "x86_64-unknown-linux"
     239                clang_target = "x86_64-unknown-none"
    236240                helenos_target = "amd64-helenos"
    237241       
     
    239243                target = config['PLATFORM']
    240244                gnu_target = "arm-linux-gnueabi"
    241                 clang_target = "arm-unknown-linux"
     245                clang_target = "arm-unknown-none-eabi"
    242246                helenos_target = "arm-helenos-gnueabi"
    243247       
     
    245249                target = config['PLATFORM']
    246250                gnu_target = "i686-pc-linux-gnu"
    247                 clang_target = "i386-unknown-linux"
     251                clang_target = "i686-unknown-none"
    248252                helenos_target = "i686-pc-helenos"
    249253       
     
    260264                        target = config['PLATFORM']
    261265                        gnu_target = "mipsel-linux-gnu"
    262                         clang_target = "mipsel-unknown-linux"
     266                        clang_target = "mipsel-unknown-none"
    263267                        helenos_target = "mipsel-helenos"
    264268               
     
    266270                        target = "mips32eb"
    267271                        gnu_target = "mips-linux-gnu"
    268                         clang_target = "mips-unknown-linux"
     272                        clang_target = "mips-unknown-none"
    269273                        helenos_target = "mips-helenos"
    270274       
     
    276280                        target = config['PLATFORM']
    277281                        gnu_target = "mips64el-linux-gnu"
    278                         clang_target = "mips64el-unknown-linux"
     282                        clang_target = "mips64el-unknown-none"
    279283                        helenos_target = "mips64el-helenos"
    280284       
     
    282286                target = config['PLATFORM']
    283287                gnu_target = "ppc-linux-gnu"
    284                 clang_target = "powerpc-unknown-linux"
     288                clang_target = "ppc-unknown-none"
    285289                helenos_target = "ppc-helenos"
    286290       
     
    293297                target = config['PLATFORM']
    294298                gnu_target = "sparc64-linux-gnu"
    295                 clang_target = "sparc-unknown-linux"
     299                clang_target = "sparc-unknown-none"
    296300                helenos_target = "sparc64-helenos"
    297301       
     
    417421       
    418422        for typedef in floatsizes:
    419                 outf.write("\nDECLARE_FLOATSIZE(\"%s\", %s);\n" % (typedef['tag'], typedef['type']))
     423                outf.write("\tDECLARE_FLOATSIZE(\"%s\", %s);\n" % (typedef['tag'], typedef['type']))
    420424       
    421425        outf.write(PROBE_TAIL)
     
    889893               
    890894                if (config['COMPILER'] == "icc"):
    891                         common['CC'] = "icc"
    892895                        check_app([common['CC'], "-V"], "Intel C++ Compiler", "support is experimental")
    893896                        check_gcc(None, "", common, PACKAGE_GCC)
    894897                        check_binutils(None, binutils_prefix, common, PACKAGE_BINUTILS)
     898                       
     899                        common['CC'] = "icc"
    895900               
    896901                if (config['COMPILER'] == "clang"):
Note: See TracChangeset for help on using the changeset viewer.