Changeset 7f25c4e in mainline
- Timestamp:
- 2013-03-12T07:11:52Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 878e181
- Parents:
- 36ceaac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r36ceaac r7f25c4e 186 186 gnu_target = None 187 187 clang_target = None 188 cc_args = [] 188 189 189 190 if (config['PLATFORM'] == "abs32le"): … … 221 222 if (config['PLATFORM'] == "mips32"): 222 223 check_config(config, "MACHINE") 223 c ommon['CC_ARGS'].append("-mabi=32")224 cc_args.append("-mabi=32") 224 225 225 226 if ((config['MACHINE'] == "lgxemul") or (config['MACHINE'] == "msim")): … … 233 234 if (config['PLATFORM'] == "mips64"): 234 235 check_config(config, "MACHINE") 235 c ommon['CC_ARGS'].append("-mabi=64")236 cc_args.append("-mabi=64") 236 237 237 238 if (config['MACHINE'] == "msim"): … … 251 252 "Please contact the developers of HelenOS."]) 252 253 253 return (target, gnu_target, clang_target)254 return (target, cc_args, gnu_target, clang_target) 254 255 255 256 def check_app(args, name, details): … … 713 714 common['CC_ARGS'] = [] 714 715 if (config['COMPILER'] == "gcc_cross"): 715 target, gnu_target, clang_target_unused = get_target(config)716 target, cc_args, gnu_target, clang_target_unused = get_target(config) 716 717 717 718 path = "%s/%s/bin" % (cross_prefix, target) … … 723 724 check_common(common, "GCC") 724 725 common['CC'] = common['GCC'] 726 common['CC_ARGS'].extend(cc_args) 725 727 726 728 if (config['COMPILER'] == "gcc_native"): … … 738 740 739 741 if (config['COMPILER'] == "clang"): 740 target, gnu_target, clang_target = get_target(config, True)742 target, cc_args, gnu_target, clang_target = get_target(config, True) 741 743 path = "%s/%s/bin" % (cross_prefix, target) 742 744 prefix = "%s-" % gnu_target 743 745 744 746 common['CC'] = "clang" 747 common['CC_ARGS'].extend(cc_args) 745 748 common['CC_ARGS'].append("-target") 746 749 common['CC_ARGS'].append(clang_target)
Note:
See TracChangeset
for help on using the changeset viewer.