VirtualBox

Changeset 76668 in vbox for trunk/src


Ignore:
Timestamp:
Jan 7, 2019 7:26:37 AM (6 years ago)
Author:
vboxsync
Message:

Main,FE/Qt: Only use precompiled headers for gcc 5.x and higher (for now).

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r76667 r76668  
    22872287
    22882288 else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
    2289   VBoxGlobal_USES      += gccprecomp
    2290   VBoxGlobal_PCH_HDR   := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
    2291   #VBoxGlobal_CXXFLAGS.linux += -H
    2292 
    2293   VirtualBox_USES      += gccprecomp
    2294   VirtualBox_PCH_HDR   := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
    2295   #VirtualBox_CXXFLAGS.linux += -H
    2296 
    2297   VirtualBoxVM_USES    += gccprecomp
    2298   VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
    2299   #VirtualBoxVM_CXXFLAGS.linux += -H
    2300 
    2301   # GCC precompiled headers seems to work more efficiently when #pragma once is involved.
    2302   # So, we've cooked our own camel cased qt wrapper headers with #pragma once inside.
    2303   VBOX_GUI_INC_DIRS <= precomptricks
     2289  if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
     2290   VBoxGlobal_USES      += gccprecomp
     2291   VBoxGlobal_PCH_HDR   := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
     2292   #VBoxGlobal_CXXFLAGS.linux += -H
     2293
     2294   VirtualBox_USES      += gccprecomp
     2295   VirtualBox_PCH_HDR   := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
     2296   #VirtualBox_CXXFLAGS.linux += -H
     2297
     2298   VirtualBoxVM_USES    += gccprecomp
     2299   VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
     2300   #VirtualBoxVM_CXXFLAGS.linux += -H
     2301
     2302   # GCC precompiled headers seems to work more efficiently when #pragma once is involved.
     2303   # So, we've cooked our own camel cased qt wrapper headers with #pragma once inside.
     2304   VBOX_GUI_INC_DIRS <= precomptricks
     2305  endif
    23042306 endif
    23052307endif
  • trunk/src/VBox/Main/Makefile.kmk

    r76667 r76668  
    279279  VBoxAPIWrap_PCH_HDR       := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
    280280 else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
    281   VBoxAPIWrap_USES           = gccprecomp
    282   VBoxAPIWrap_PCH_HDR       := $(PATH_SUB_CURRENT)/src-all/xpcom/VBoxAPIWrap-precomp_gcc.h
     281  if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
     282VBoxAPIWrap_USES           = gccprecomp
     283VBoxAPIWrap_PCH_HDR       := $(PATH_SUB_CURRENT)/src-all/xpcom/VBoxAPIWrap-precomp_gcc.h
     284  endif
    283285 endif
    284286 VBoxAPIWrap_SOURCES         = \
     
    412414 VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
    413415else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
    414  VBoxSVC_USES    += gccprecomp
    415  VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/xpcom/precomp_gcc.h
     416 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
     417VBoxSVC_USES    += gccprecomp
     418VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/xpcom/precomp_gcc.h
     419 endif
    416420endif
    417421## r=bird: If you really think you might need VBOX_WITH_RECORDING and VBOX_WITH_AUDIO_RECORDING both here and for
     
    812816 VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
    813817else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
    814  VBoxC_USES    += gccprecomp
    815  VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/xpcom/precomp_gcc.h
     818 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
     819VBoxC_USES    += gccprecomp
     820VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/xpcom/precomp_gcc.h
     821 endif
    816822endif
    817823VBoxC_DEFS = \
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