qt5base-lts/config.tests/common/f16c/f16c.pro
Allan Sandfeld Jensen 925a3c6529 Use native support for fp16 where available
Use F16C or ARM FP16 if available at compile time.

Configure check added because older clang compilers have F16C defines
and flags but not all the intrinsics.

Change-Id: I71f358b8fd003e70ab8fcf35097414591e485112
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-02-16 12:03:45 +00:00

6 lines
211 B
Prolog

SOURCES = f16c.cpp
CONFIG -= qt dylib release debug_and_release
CONFIG += debug console
!defined(QMAKE_CFLAGS_F16C, "var"):error("This compiler does not support F16C")
else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_F16C