Skip to content

Commit

Permalink
Make TARGET_LEGACY_GCC_VERSION work like TARGET_GCC_VERSION.
Browse files Browse the repository at this point in the history
  • Loading branch information
MWisBest authored and andi34 committed Sep 17, 2016
1 parent 1dde142 commit 0c71f68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/combo/TARGET_linux-arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ $(combo_2nd_arch_prefix)TARGET_NDK_GCC_VERSION := 4.9

ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),)
$(combo_2nd_arch_prefix)TARGET_GCC_VERSION := 4.9
$(combo_2nd_arch_prefix)TARGET_LEGACY_GCC_VERSION := 4.8
else
$(combo_2nd_arch_prefix)TARGET_GCC_VERSION := $(TARGET_GCC_VERSION_EXP)
endif

ifeq ($(strip $(TARGET_LEGACY_GCC_VERSION_EXP)),)
$(combo_2nd_arch_prefix)TARGET_LEGACY_GCC_VERSION := 4.8
else
$(combo_2nd_arch_prefix)TARGET_LEGACY_GCC_VERSION := $(TARGET_LEGACY_GCC_VERSION_EXP)
endif

TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_$(combo_2nd_arch_prefix)ARCH)/$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT).mk
ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
$(error Unknown ARM architecture version: $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT))
Expand Down
1 change: 1 addition & 0 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ function setpaths()
targetgccversion2=$(get_build_var 2ND_TARGET_GCC_VERSION)
targetlegacygccversion=$(get_build_var TARGET_LEGACY_GCC_VERSION)
export TARGET_GCC_VERSION=$targetgccversion
export TARGET_LEGACY_GCC_VERSION=$targetlegacygccversion

# The gcc toolchain does not exists for windows/cygwin. In this case, do not reference it.
export ANDROID_TOOLCHAIN=
Expand Down

0 comments on commit 0c71f68

Please sign in to comment.