Changeset 95e370f8 in mainline
- Timestamp:
- 2013-05-30T20:49:46Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45b4300
- Parents:
- bf85e56
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/Makefile.inc
rbf85e56 r95e370f8 30 30 BFD_ARCH = i386:x86-64 31 31 BFD = binary 32 CLANG_TARGET = x86_64-unknown-linux33 32 34 33 FPU_NO_CFLAGS = -mno-sse -mno-sse2 -
kernel/arch/ia32/Makefile.inc
rbf85e56 r95e370f8 30 30 BFD_ARCH = i386 31 31 BFD = binary 32 CLANG_TARGET = i386-unknown-linux33 32 34 33 BITS = 32 -
tools/autotool.py
rbf85e56 r95e370f8 182 182 "Please contact the developers of HelenOS."]) 183 183 184 def get_target(config , needs_clang = False):184 def get_target(config): 185 185 target = None 186 186 gnu_target = None … … 205 205 target = config['PLATFORM'] 206 206 gnu_target = "amd64-linux-gnu" 207 clang_target = "x86_64-u known-linux"207 clang_target = "x86_64-unknown-linux" 208 208 209 209 if (config['PLATFORM'] == "arm32"): … … 214 214 target = config['PLATFORM'] 215 215 gnu_target = "i686-pc-linux-gnu" 216 clang_target = "i386-u known-linux"216 clang_target = "i386-unknown-linux" 217 217 218 218 if (config['PLATFORM'] == "ia64"): … … 247 247 target = config['PLATFORM'] 248 248 gnu_target = "sparc64-linux-gnu" 249 250 if (target is None) or (gnu_target is None) or (clang_target is None and needs_clang):251 print_error(["Failed to determine target for compiler.",252 "Please contact the developers of HelenOS."])253 249 254 250 return (target, cc_args, gnu_target, clang_target) … … 714 710 common['CC_ARGS'] = [] 715 711 if (config['COMPILER'] == "gcc_cross"): 716 target, cc_args, gnu_target, clang_target_unused = get_target(config) 712 target, cc_args, gnu_target, clang_target = get_target(config) 713 714 if (target is None) or (gnu_target is None): 715 print_error(["Unsupported compiler target for GNU GCC.", 716 "Please contact the developers of HelenOS."]) 717 717 718 path = "%s/%s/bin" % (cross_prefix, target) 718 719 prefix = "%s-" % gnu_target … … 739 740 740 741 if (config['COMPILER'] == "clang"): 741 target, cc_args, gnu_target, clang_target = get_target(config, True) 742 target, cc_args, gnu_target, clang_target = get_target(config) 743 744 if (target is None) or (gnu_target is None) or (clang_target is None): 745 print_error(["Unsupported compiler target for clang.", 746 "Please contact the developers of HelenOS."]) 747 742 748 path = "%s/%s/bin" % (cross_prefix, target) 743 749 prefix = "%s-" % gnu_target 744 750 751 check_app(["clang", "--version"], "clang compiler", "preferably version 1.0 or newer") 752 check_gcc(path, prefix, common, PACKAGE_GCC) 753 check_binutils(path, prefix, common, PACKAGE_BINUTILS) 754 755 check_common(common, "GCC") 745 756 common['CC'] = "clang" 746 757 common['CC_ARGS'].extend(cc_args) 747 758 common['CC_ARGS'].append("-target") 748 759 common['CC_ARGS'].append(clang_target) 749 check_app([common['CC'], "--version"], "Clang compiler", "preferably version 1.0 or newer") 750 check_gcc(path, prefix, common, PACKAGE_GCC) 751 check_binutils(path, prefix, common, PACKAGE_BINUTILS) 760 common['CLANG_TARGET'] = clang_target 752 761 753 762 # Platform-specific utilities -
uspace/lib/c/arch/amd64/Makefile.common
rbf85e56 r95e370f8 27 27 # 28 28 29 CLANG_TARGET = x86_64-unknown-linux30 29 GCC_CFLAGS += -fno-omit-frame-pointer 31 30 CLANG_CFLAGS += -fno-omit-frame-pointer -
uspace/lib/c/arch/ia32/Makefile.common
rbf85e56 r95e370f8 27 27 # 28 28 29 CLANG_TARGET = i386-unknown-linux30 31 29 ifeq ($(PROCESSOR),i486) 32 30 GCC_CFLAGS += -march=i486 -fno-omit-frame-pointer
Note:
See TracChangeset
for help on using the changeset viewer.