lscpu: add warning for __SANITIZE_ADDRESS__

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2015-06-02 14:52:56 +02:00
parent a680b2abe7
commit 6d9b1c19ea
1 changed files with 6 additions and 2 deletions

View File

@ -34,8 +34,12 @@
#include <sys/types.h>
#include <sys/stat.h>
#if (defined(__x86_64__) || defined(__i386__)) && !defined(__SANITIZE_ADDRESS__)
# define INCLUDE_VMWARE_BDOOR
#if (defined(__x86_64__) || defined(__i386__))
# if !defined( __SANITIZE_ADDRESS__)
# define INCLUDE_VMWARE_BDOOR
# else
# warning VMWARE detection disabled by __SANITIZE_ADDRESS__
# endif
#endif
#ifdef INCLUDE_VMWARE_BDOOR