VirtualBox

Changeset 42586 in vbox


Ignore:
Timestamp:
Aug 3, 2012 5:45:01 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79769
Message:

Try to build IPRT with the same compiler flags to optimize caching hits.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r42579 r42586  
    32783278TEMPLATE_VBOXR3EXE_ASFLAGS.amd64       = $(VBOX_ASFLAGS64)
    32793279TEMPLATE_VBOXR3EXE_DEFS                = IN_RING3 $(ARCH_BITS_DEFS)
     3280TEMPLATE_VBOXR3EXE_DEFS.win            = _CRT_SECURE_NO_DEPRECATE
    32803281TEMPLATE_VBOXR3EXE_USES                = dtrace
    32813282if defined(VBOX_WITH_DTRACE_R3) && defined(VBOX_WITH_NATIVE_DTRACE)
     
    43954396 TEMPLATE_VBOXBLDPROG_TOOL              := $(VBOX_VCC_TOOL_STEM)$(toupper $(KBUILD_HOST_ARCH))
    43964397 TEMPLATE_VBOXBLDPROG_SDKS              := ReorderCompilerIncs $(VBOX_WINPSDK)
    4397  TEMPLATE_VBOXBLDPROG_CXXFLAGS          := -Zi -Zl -GR- -EHs- -GF -MT$(VBOX_VCC_CRT_TYPE) -W3 -wd4996 -Zc:wchar_t-
     4398 TEMPLATE_VBOXBLDPROG_CXXFLAGS          := -Zi -Zl -GR- -EHsc -GF -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) -MT$(VBOX_VCC_CRT_TYPE)
    43984399 TEMPLATE_VBOXBLDPROG_CXXFLAGS.debug    := -RTCsu
    4399  TEMPLATE_VBOXBLDPROG_CXXFLAGS.release  := -O2 -Oy-
    44004400 TEMPLATE_VBOXBLDPROG_CXXFLAGS.profile   = $(TEMPLATE_VBOXBLDPROG_CXXFLAGS.release)
    44014401 TEMPLATE_VBOXBLDPROG_CXXFLAGS.kprofile  = $(TEMPLATE_VBOXBLDPROG_CXXFLAGS.release)
     
    45194519TEMPLATE_VBoxAdvBldProg_SDKS.win= $(TEMPLATE_VBOXBLDPROG_SDKS.win) VBOX_NTDLL
    45204520TEMPLATE_VBoxAdvBldProg_DEFS    = $(TEMPLATE_VBOXBLDPROG_DEFS) IN_RT_R3
     4521ifeq ($(KBUILD_HOST),win)
     4522 TEMPLATE_VBoxAdvBldProg_CFLAGS = $(TEMPLATE_VBOXBLDPROG_CFLAGS) $(VBOX_VCC_WERR)
     4523 TEMPLATE_VBoxAdvBldProg_CXXFLAGS = $(TEMPLATE_VBOXBLDPROG_CXXFLAGS) $(VBOX_VCC_WERR)
     4524endif
    45214525TEMPLATE_VBoxAdvBldProg_LIBS    = \
    45224526        $(PATH_STAGE_LIB)/RuntimeBldProg$(VBOX_SUFF_LIB) \
     
    46644668
    46654669#
    4666 # Template for building normal R3 (dynamic) libraries for the guest additions.
    4667 #
     4670# Template for building normal R3 (dynamic) libraries for the guest additions, allows warnings.
     4671#
     4672## @todo rename to VBoxGuestR3DllWarn
    46684673TEMPLATE_NewVBoxGuestR3Dll = VBox Guest User Dynamic Libraries w/ IPRT and VBGL.
    46694674TEMPLATE_NewVBoxGuestR3Dll_EXTENDS  = VBOXGUESTR3DLL
     
    46754680
    46764681#
    4677 # Template for building R3 (static) libraries for the guest additions.
    4678 #
     4682# Template for building normal R3 (dynamic) libraries for the guest additions, strict.
     4683#
     4684TEMPLATE_VBoxGuestR3Dll = VBox Guest User Dynamic Libraries w/ IPRT and VBGL.
     4685TEMPLATE_VBoxGuestR3Dll_EXTENDS  = NewVBoxGuestR3Dll
     4686TEMPLATE_VBoxGuestR3Dll_EXTENDS_BY = appending
     4687ifeq ($(KBUILD_TARGET),win)
     4688 TEMPLATE_VBoxGuestR3Dll_CFLAGS      += $(VBOX_VCC_WERR)
     4689 TEMPLATE_VBoxGuestR3Dll_CXXFLAGS    += $(VBOX_VCC_WERR)
     4690 TEMPLATE_VBoxGuestR3Dll_LDFLAGS     += $(VBOX_VCC_LD_WERR)
     4691else
     4692 TEMPLATE_VBoxGuestR3Dll_CFLAGS      += $(VBOX_GCC_WERR)
     4693 TEMPLATE_VBoxGuestR3Dll_CXXFLAGS    += $(VBOX_GCC_WERR)
     4694endif
     4695
     4696#
     4697# Template for building R3 (static) libraries for the guest additions, allows warnings.
     4698#
     4699## @todo rename to VBoxGuestR3LibWarn.
    46794700TEMPLATE_VBOXGUESTR3LIB           = VBox Guest User Libraries
    46804701TEMPLATE_VBOXGUESTR3LIB_EXTENDS   = VBOXGUESTR3EXE
     
    46844705 TEMPLATE_VBOXGUESTR3LIB_CFLAGS   = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fPIC
    46854706 TEMPLATE_VBOXGUESTR3LIB_CXXFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fPIC -fno-exceptions
     4707endif
     4708
     4709#
     4710# Template for building R3 (static) libraries for the guest additions, strict.
     4711#
     4712TEMPLATE_VBoxGuestR3Lib = VBox Guest User Dynamic Libraries w/ IPRT and VBGL.
     4713TEMPLATE_VBoxGuestR3Lib_EXTENDS  = VBOXGUESTR3LIB
     4714TEMPLATE_VBoxGuestR3Lib_EXTENDS_BY = appending
     4715ifeq ($(KBUILD_TARGET),win)
     4716 TEMPLATE_VBoxGuestR3Lib_CFLAGS      += $(VBOX_VCC_WERR)
     4717 TEMPLATE_VBoxGuestR3Lib_CXXFLAGS    += $(VBOX_VCC_WERR)
     4718 TEMPLATE_VBoxGuestR3Lib_LDFLAGS     += $(VBOX_VCC_LD_WERR)
     4719else
     4720 TEMPLATE_VBoxGuestR3Lib_CFLAGS      += $(VBOX_GCC_WERR)
     4721 TEMPLATE_VBoxGuestR3Lib_CXXFLAGS    += $(VBOX_GCC_WERR)
    46864722endif
    46874723
  • trunk/src/VBox/Runtime/Makefile.kmk

    r42539 r42586  
    10261026#       for build programs.
    10271027#
    1028 RuntimeBldProg_TEMPLATE         := VBOXBLDPROG
     1028RuntimeBldProg_TEMPLATE         := VBoxAdvBldProg
    10291029RuntimeBldProg_EXTENDS          := RuntimeR3
    10301030RuntimeBldProg_BLD_TRG          := $(KBUILD_HOST)
     
    10381038# additions, while .x86 is for cross building x86 while targeting amd64.)
    10391039#
    1040 RuntimeGuestR3_TEMPLATE                 := VBOXGUESTR3LIB
     1040RuntimeGuestR3_TEMPLATE                 := VBoxGuestR3Lib
    10411041## @todo change this to EXTEND the RuntimeR3 target.
    10421042RuntimeGuestR3_SDKS.win                 := $(RuntimeR3_SDKS.win)
     
    10741074# RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
    10751075#
    1076 RuntimeGuestR3-x86_EXTENDS              := RuntimeGuestR3
     1076RuntimeGuestR3-x86_EXTENDS              := RuntimeGuestR3
    10771077RuntimeGuestR3-x86_BLD_TRG_ARCH         := x86
    10781078
     
    10811081# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
    10821082#
    1083 RuntimeGuestR3Shared_TEMPLATE           := VBOXGUESTR3DLL
     1083RuntimeGuestR3Shared_TEMPLATE           := VBoxGuestR3Dll
    10841084RuntimeGuestR3Shared_EXTENDS            := RuntimeGuestR3
    10851085RuntimeGuestR3Shared_INST                = $(INST_ADDITIONS_LIB)
     
    10891089# RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
    10901090#
    1091 RuntimeGuestR3Shared-x86_EXTENDS                := RuntimeGuestR3Shared
    1092 RuntimeGuestR3Shared-x86_BLD_TRG_ARCH         := x86
     1091RuntimeGuestR3Shared-x86_EXTENDS        := RuntimeGuestR3Shared
     1092RuntimeGuestR3Shared-x86_BLD_TRG_ARCH   := x86
    10931093
    10941094
     
    10981098#                      for X11 drivers, GRADD and similar.
    10991099#
    1100 RuntimeGuestR3Mini_TEMPLATE                 := VBOXGUESTR3DLL
     1100RuntimeGuestR3Mini_TEMPLATE                 := VBoxGuestR3Dll
    11011101## @todo change this to EXTEND the RuntimeGuestR3 target.
    11021102RuntimeGuestR3Mini_INST                     := $(INST_ADDITIONS_LIB)
Note: See TracChangeset for help on using the changeset viewer.

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