VirtualBox

Changeset 76687 in vbox


Ignore:
Timestamp:
Jan 7, 2019 5:16:05 PM (6 years ago)
Author:
vboxsync
Message:

GCC/Address sanitiser: do not break pre-compiled headers.
bugref:8019: GCC sanitisers
This change removes -include sanitizer/lsan_interface.h from the build command
line if the GCC sanitisers are enabled and includes the file from iprt/mem.h
instead. This prevents breaking builds with pre-compiled headers which
require that no C tokens should occur before the pre-compiled header is
included, and is generally nicer.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r76662 r76687  
    30443044        -fno-sanitize=vptr \
    30453045        -fno-common \
    3046         -include sanitizer/lsan_interface.h \
    30473046        -DIPRT_WITH_GCC_SANITIZER \
    30483047        -DVBOX_WITH_GCC_SANITIZER
  • trunk/include/iprt/mem.h

    r76585 r76687  
    3434#include <iprt/types.h>
    3535
     36#ifdef IPRT_WITH_GCC_SANITIZER
     37# include <sanitizer/lsan_interface.h>
     38#endif
    3639
    3740#ifdef IN_RC
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