VirtualBox

Changeset 63882 in vbox


Ignore:
Timestamp:
Sep 19, 2016 12:13:32 PM (8 years ago)
Author:
vboxsync
Message:

Config.kmk: Made VBOX_GCC_CHECK_* a little bit more thorough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r63881 r63882  
    24512451else
    24522452 VBOX_GCC_CHECK_EX_CC = $(shell \
    2453     if $(1) $(subst -Wno-,-W,$(2)) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; )
     2453    if $(1) $(subst -Wno-,-W,$(2)) -c -o /dev/null -xc   $(PATH_OUT)/DynamicConfig.c  > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; )
    24542454 VBOX_GCC_CHECK_EX_CXX = $(shell \
    2455     if $(1) $(subst -Wno-,-W,$(2)) -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; )
     2455    if $(1) $(subst -Wno-,-W,$(2)) -c -o /dev/null -xc++ $(PATH_OUT)/DynamicConfig.cpp > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; )
    24562456 VBOX_GCC_CHECK_EX_LD = $(shell \
    24572457    if $(1) -Wl,$(2) $(if $(eq $(KBUILD_HOST),darwin),-Wl$(COMMA)-u$(COMMA)start -Wl$(COMMA)-undefined$(COMMA)dynamic_lookup,) \
     
    25422542        | $(SED_EXT) -n -e 's|^ *pylint *\([0-9][0-9]*\).\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$(DOLLAR)|$$(expr \1 * 10000 + \2 * 100 + \3)|p' )
    25432543
     2544# Test C and C++ files.
     2545$(PATH_OUT)/DynamicConfig.c $(PATH_OUT)/DynamicConfig.cpp:
     2546        $(QUIET)$(APPEND) -tn "$@" "int foobar(void)" "{" "    return 42;" "}" ""
     2547
    25442548# No $(QUIET) here as it's interesting to see what goes into the file.
    25452549$(PATH_OUT)/DynamicConfig.kmk: \
     
    25522556                $(VBOX_GCC32_PATH_CXX) \
    25532557                $(if-expr "$(KBUILD_HOST).$(KBUILD_HOST_ARCH)" == "solaris.amd64" && $(KBUILD_HOST_VERSION_MINOR) >= 11 \
    2554                         , /platform/i86pc/kernel/$(KBUILD_HOST_ARCH)/unix,)
     2558                        , /platform/i86pc/kernel/$(KBUILD_HOST_ARCH)/unix,) \
     2559                | $(PATH_OUT)/DynamicConfig.c $(PATH_OUT)/DynamicConfig.cpp
    25552560        $(call MSG_GENERATE,,$@,)
    25562561        $(QUIET)$(RM) -f '$@'
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