VirtualBox

Changeset 96269 in vbox


Ignore:
Timestamp:
Aug 17, 2022 4:47:58 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153083
Message:

IPRT: Don't include the windows error defines in the static libraries as it isn't used too much (compared to the VBox ones) and takes up quite a bit of space (30% for the valkit tstUtf8.exe). We can lookup windows error codes manually when looking into logs/errors including them. If we find some way of stripping them down and/or implement better compression, we can reconsider this. bugref:10195

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r96246 r96269  
    17821782# RuntimeR3 - Static Runtime for Ring-3 executables.
    17831783#
     1784# We drop the windows error defines here for reason of size. The valkit tstUtf8
     1785# was reduced by 175KB, from 600KB to 425KB (about 30%). Come up with a way of
     1786# stripping it down or compressing it better and it can be added back.
     1787# - 2022-08-17, bird.
     1788#
    17841789RuntimeR3_TEMPLATE = VBoxR3Static
    17851790RuntimeR3_EXTENDS  = RuntimeBaseR3
     1791#RuntimeR3_DEFS.win = $(RuntimeBaseR3_DEFS.win) IPRT_NO_WIN_ERROR_DATA
    17861792ifdef VBOX_WITH_NOCRT_STATIC
    17871793 if1of ($(KBUILD_TARGET), win)
    1788   RuntimeR3_USES  = $(RuntimeBaseR3_USES) VBoxNoCrtAliases
    1789   RuntimeR3_DEFS += $(filter-out RT_WITHOUT_NOCRT_WRAPPERS,$(RuntimeBaseR3_DEFS)) \
     1794  RuntimeR3_USES   = $(RuntimeBaseR3_USES) VBoxNoCrtAliases
     1795  RuntimeR3_DEFS   = $(filter-out RT_WITHOUT_NOCRT_WRAPPERS,$(RuntimeBaseR3_DEFS)) \
    17901796        RT_FORCE_NOCRT_WRAPPERS \
    17911797        RT_WITH_NOCRT_ALIASES RT_WITH_NOCRT_UNDERSCORE_ALIASES RT_WITH_GENALIAS_NOCRT_ALIASES
     
    20752081 endif
    20762082endif
     2083
    20772084
    20782085#
  • trunk/src/VBox/Runtime/win/errmsgwin.cpp

    r96165 r96269  
    4141*   Global Variables                                                                                                             *
    4242*********************************************************************************************************************************/
    43 #ifdef IPRT_NO_ERROR_DATA
     43#if defined(IPRT_NO_ERROR_DATA) || defined(IPRT_NO_WIN_ERROR_DATA)
    4444/* Cook data just for VINF_SUCCESS so that code below compiles fine. */
    4545static const char            g_achWinStrTabData[] = { "ERROR_SUCCESS" };
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