Fix build with clang-cl
1. Clang-CL can't recognize "/d2FH4" and it's causing lots of warnings when compiling. So don't apply it when building with clang-cl. 2. The definition of "FS_INFORMATION_CLASS" need to be visible to clang as well. Don't know why it was excluded originally. Change-Id: I7b6e14999eea0ba1f0d73962ff03a35548f88a5a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit c532a576708254e725bf87e3b4f74d29749e709a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
8ddedab87f
commit
574e4527b5
@ -148,7 +148,7 @@ function(qt_internal_set_exceptions_flags target exceptions_on)
|
||||
if(exceptions_on)
|
||||
if(MSVC)
|
||||
set(_flag "/EHsc")
|
||||
if(MSVC_VERSION GREATER_EQUAL 1929)
|
||||
if((MSVC_VERSION GREATER_EQUAL 1929) AND NOT CLANG)
|
||||
set(_flag ${_flag} "/d2FH4")
|
||||
endif()
|
||||
endif()
|
||||
|
@ -68,7 +68,7 @@ typedef struct _FILE_FS_SECTOR_SIZE_INFORMATION {
|
||||
ULONG ByteOffsetForPartitionAlignment;
|
||||
} FILE_FS_SECTOR_SIZE_INFORMATION, *PFILE_FS_SECTOR_SIZE_INFORMATION;
|
||||
|
||||
#if !defined(Q_CC_CLANG) && !defined(Q_CC_MINGW)
|
||||
#if !defined(Q_CC_MINGW)
|
||||
// keep the following enumeration as is, taken from
|
||||
// https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ne-wdm-_fsinfoclass
|
||||
// Unfortunately we can't include the wdm.h header, so we duplicate the code here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user