VirtualBox

Changeset 96510 in vbox for trunk/src/VBox/Additions/3D


Ignore:
Timestamp:
Aug 26, 2022 2:04:19 AM (2 years ago)
Author:
vboxsync
Message:

Add/3D/Config.kmk: Must disable FPU intrinsics in x86 mode, or we end up with lots of unresolved symbols on the __CIxxxx form (like __CIsqrt, __CIcos, ...). For more see bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/3D/Config.kmk

    r96407 r96510  
    111111        $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
    112112        $(SDK_VBOX_SOFTFLOATGUESTR3SHARED_LIBS.$(KBUILD_TARGET))
    113 TEMPLATE_VBoxMesa3DGuestR3Dll_LDFLAGS.win += $(TEMPLATE_NewerVccVBoxGuestR3Dll_LDFLAGS.win) /VERBOSE:LIB
     113TEMPLATE_VBoxMesa3DGuestR3Dll_LDFLAGS.win += $(TEMPLATE_NewerVccVBoxGuestR3Dll_LDFLAGS.win)
     114# The -Oi- disable optimizations of math functions like sqrt(), that takes all
     115# parameters on the stack, into calls to __CIsqrt that takes parameters in FPU
     116# registers.  While we could implement the __CIxxxx functions too, they would
     117# be difficult to test properly given that they're not directly callable from
     118# C.  Also, there could be other aspects to these functions that we don't know
     119# about, given that they aren't documented all that well.  See:
     120#   https://docs.microsoft.com/en-us/cpp/preprocessor/intrinsic?view=msvc-160#intrinsic-floating-point-functions
     121#   https://docs.microsoft.com/en-us/cpp/build/reference/oi-generate-intrinsic-functions?view=msvc-160
     122# Unforutnately, this does mean that we will miss out on a little bit of
     123# performance in 32-bit binaries.
     124TEMPLATE_VBoxMesa3DGuestR3Dll_CFLAGS.win.x86   += $(TEMPLATE_NewerVccVBoxGuestR3Dll_CFLAGS.win.x86) -Oi-
     125TEMPLATE_VBoxMesa3DGuestR3Dll_CXXFLAGS.win.x86 += $(TEMPLATE_NewerVccVBoxGuestR3Dll_CXXFLAGS.win.x86) -Oi-
    114126endif
    115127
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