Changeset 12bdbcc6 in mainline for tools/autotool.py


Ignore:
Timestamp:
2018-07-28T10:55:52Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b4c8a7b
Parents:
3943da1
Message:

make the toolchain error message just slightly more informative

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    r3943da1 r12bdbcc6  
    5353PACKAGE_CLANG = "reasonably recent version of clang needs to be installed"
    5454
     55TOOLCHAIN_FAIL = [
     56        "Compiler toolchain for target is not installed, or CROSS_PREFIX ",
     57        "environment variable is not set correctly. Use tools/toolchain.sh",
     58        "to (re)build the cross-compiler toolchain."]
    5559COMPILER_FAIL = "The compiler is probably not capable to compile HelenOS."
    5660COMPILER_WARNING = "The compilation of HelenOS might fail."
     
    596600                                check_path = "%s/%s/%s" % (cross_helenos_prefix, platform, target)
    597601                                if not os.path.exists(check_path):
    598                                         print_error(["Toolchain for target is not installed, or CROSS_PREFIX is not set correctly."])
     602                                        print_error(TOOLCHAIN_FAIL)
    599603                                path = "%s/%s/bin" % (cross_helenos_prefix, platform)
    600604                        else:
    601605                                check_path = "%s/%s/%s" % (cross_prefix, platform, target)
    602606                                if not os.path.exists(check_path):
    603                                         print_error(["Toolchain for target is not installed, or CROSS_PREFIX is not set correctly."])
     607                                        print_error(TOOLCHAIN_FAIL)
    604608                                path = "%s/%s/bin" % (cross_prefix, platform)
    605609
Note: See TracChangeset for help on using the changeset viewer.