File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,12 @@ define Host/SetToolchainInfo
191
191
$(SED ) 's,GCC_VERSION=.*,GCC_VERSION=$(GCC_VERSION ) ,' $(TOOLCHAIN_DIR ) /info.mk
192
192
endef
193
193
194
+ ifdef CONFIG_GCC_USE_VERSION_12
195
+ GCC_VERSION_FILE:=gcc/genversion.cc
196
+ else
197
+ GCC_VERSION_FILE:=gcc/version.c
198
+ endif
199
+
194
200
ifneq ($(GCC_PREPARE ) ,)
195
201
define Host/Prepare
196
202
$(call Host/SetToolchainInfo)
@@ -199,8 +205,7 @@ ifneq ($(GCC_PREPARE),)
199
205
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_SOURCE_DIR)/
200
206
$(SED) 's,^MULTILIB_OSDIRNAMES,# MULTILIB_OSDIRNAMES,' $(HOST_SOURCE_DIR)/gcc/config/*/t-*
201
207
$(SED) 'd' $(HOST_SOURCE_DIR)/gcc/DEV-PHASE
202
- $(SED) 's, DATESTAMP,,' $(HOST_SOURCE_DIR)/gcc/version.c
203
- # (cd $(HOST_SOURCE_DIR)/libstdc++-v3; autoconf;);
208
+ $(SED) 's, DATESTAMP,,' $(HOST_SOURCE_DIR)/$(GCC_VERSION_FILE)
204
209
$(SED) 's,gcc_no_link=yes,gcc_no_link=no,' $(HOST_SOURCE_DIR)/libstdc++-v3/configure
205
210
mkdir -p $(GCC_BUILD_DIR)
206
211
endef
You can’t perform that action at this time.
0 commit comments