Autodetect Neon support under Windows
This is done to autodetect Neon support for QNX. It might make sense for other platforms as well, so enable the compile check for all target platforms. Task-number: QTBUG-34743 Change-Id: I1d149d1942ce0caa288cb56491e4a0ba455dda7d Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
cad65f2632
commit
6ac1636c71
@ -183,7 +183,7 @@ Configure::Configure(int& argc, char** argv)
|
||||
dictionary[ "PLUGIN_MANIFESTS" ] = "yes";
|
||||
dictionary[ "DIRECTWRITE" ] = "no";
|
||||
dictionary[ "NIS" ] = "no";
|
||||
dictionary[ "NEON" ] = "no";
|
||||
dictionary[ "NEON" ] = "auto";
|
||||
dictionary[ "LARGE_FILE" ] = "yes";
|
||||
dictionary[ "FONT_CONFIG" ] = "no";
|
||||
dictionary[ "POSIX_IPC" ] = "no";
|
||||
@ -2200,6 +2200,8 @@ bool Configure::checkAvailability(const QString &part)
|
||||
available = (platform() == QNX || platform() == BLACKBERRY) && compilerSupportsFlag("qcc -fstack-protector-strong");
|
||||
} else if (part == "SLOG2") {
|
||||
available = tryCompileProject("unix/slog2");
|
||||
} else if (part == "NEON") {
|
||||
available = (dictionary["QT_ARCH"] == "arm") && tryCompileProject("unix/neon");
|
||||
}
|
||||
|
||||
return available;
|
||||
@ -2298,6 +2300,8 @@ void Configure::autoDetection()
|
||||
dictionary["AVX2"] = checkAvailability("AVX2") ? "yes" : "no";
|
||||
if (dictionary["IWMMXT"] == "auto")
|
||||
dictionary["IWMMXT"] = checkAvailability("IWMMXT") ? "yes" : "no";
|
||||
if (dictionary["NEON"] == "auto")
|
||||
dictionary["NEON"] = checkAvailability("NEON") ? "yes" : "no";
|
||||
if (dictionary["OPENSSL"] == "auto")
|
||||
dictionary["OPENSSL"] = checkAvailability("OPENSSL") ? "yes" : "no";
|
||||
if (dictionary["DBUS"] == "auto")
|
||||
|
Loading…
Reference in New Issue
Block a user