VirtualBox

Changeset 1702 in vbox for trunk/src/recompiler/new


Ignore:
Timestamp:
Mar 26, 2007 12:41:34 PM (18 years ago)
Author:
vboxsync
Message:

Using -dumpversion, and corrected the parsing of minor_ver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/new/Makefile.kmk

    r1700 r1702  
    373373                op-darwin.sed \
    374374                op-undefined.lst \
     375                Makefile.kmk \
    375376                $(comp-cmds COMPILE_OP_CMDS,COMPILE_OP_CMDS_PREV,FORCE) \
    376377                | $(call DIRDEP,$(PATH_$(REM_MOD)))
     
    380381        $(addsuffix $(SP)\$(NL)$(TAB)  ,$(COMPILE_OP_CMDS)) -o [email protected]
    381382else ifeq ($(VBOX_RECOMPILER_OP_GCC_OK),dunno) # (permit 3.x.x and 4.1.x+ for now)
    382         major_ver=`$(VBOX_RECOMPILER_OP_GCC) --version | $(SED) -e '/GCC/!d' -e 's/^.* (GCC) \([2-9]\)\..*$$/\1/'`; \
    383         minor_ver=`$(VBOX_RECOMPILER_OP_GCC) --version | $(SED) -e '/GCC/!d' -e 's/^.* (GCC) \([2-9]\)\.\([2-9]\)\..*$$/\2/'`; \
     383        major_ver=`$(VBOX_RECOMPILER_OP_GCC) -dumpversion | $(SED) -e 's/^\([2-9]\)\..*$$/\1/'`; \
     384        minor_ver=`$(VBOX_RECOMPILER_OP_GCC) -dumpversion | $(SED) -e 's/^[2-9]\.\([0-9]\)\..*$$/\1/'`; \
     385        bugfix_ver=`$(VBOX_RECOMPILER_OP_GCC) -dumpversion | $(SED) -e 's/^[2-9]\.[0-9]\.\([0-9]\).*$$/\1/'`; \
    384386        if test "$$major_ver" = "3" -o "(" "$$major_ver" = "4" -a "$$minor_ver" != "0" ")"; then \
    385                 $(ECHO_EXT) "Compiling $< => $@" && \
     387                $(ECHO_EXT) "Compiling $< => $@ [gcc v$${major_ver}.$${minor_ver}.$${bugfix_ver}]" && \
    386388                $(addsuffix $(SP)\$(NL)$(TAB)$(TAB)  ,$(COMPILE_OP_CMDS)) -o [email protected]; \
    387389        else \
    388                 $(ECHO_EXT) "Using staged op.S (gcc ver $$major_ver.$$minor_ver)" && \
     390                $(ECHO_EXT) "Using staged op.S [gcc v$${major_ver}.$${minor_ver}.$${bugfix_ver}]" && \
    389391                $(CP_EXT) -f staged/op-elf-$(BUILD_TARGET_ARCH).S [email protected]; \
    390392        fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette