Skip to content

Commit

Permalink
Merge pull request #5019 from tuffnatty/fix-clang18
Browse files Browse the repository at this point in the history
Fix non-x86_64 build with CLang 18+ which ignores no unknown flags anymore (#4981)
  • Loading branch information
pawelsalawa authored Jul 19, 2024
2 parents bbb6c0e + e92d6de commit e0bdaf6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Plugins/DbSqliteWx/DbSqliteWx.pro
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ DEFINES += SQLITE_HAS_CODEC SQLITE_ALLOW_XTHREAD_CONNECT=1 SQLITE_THREADSAFE=1 S
SQLITE_ENABLE_RTREE=1 \
SQLITE_ENABLE_MATH_FUNCTIONS=1

QMAKE_CFLAGS += -msse4.1 -msse4.2 -maes
# We cannot reliably detect the target architecture, assume that host == target
contains(QMAKE_HOST.arch, x86_64) | contains(QMAKE_HOST.arch, amd64): {
QMAKE_CFLAGS += -msse4.1 -msse4.2 -maes
}

QMAKE_CFLAGS_WARN_ON = -Wall -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-but-set-variable \
-Wno-parentheses -Wno-unused-variable -Wno-unknown-pragmas

Expand Down

0 comments on commit e0bdaf6

Please sign in to comment.