mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-14 09:25:49 +08:00
refs #482 Added new qmake feature files and includes.
This commit is contained in:
37
mkspecs/features/wordsize.pri
Normal file
37
mkspecs/features/wordsize.pri
Normal file
@@ -0,0 +1,37 @@
|
||||
win32-msvc* {
|
||||
win32:contains(QMAKE_TARGET.arch, x86_64) {
|
||||
WORD_SIZE = 64
|
||||
}
|
||||
else {
|
||||
WORD_SIZE = 32
|
||||
}
|
||||
}
|
||||
win32-g++ {
|
||||
WIN_FIND = $$(SYSTEMROOT)\system32\find
|
||||
MINGW64 = $$system($$QMAKE_CXX -Q --help=target | $$WIN_FIND \"-m64\")
|
||||
contains(MINGW64,[enabled]) {
|
||||
WORD_SIZE = 64
|
||||
}
|
||||
else {
|
||||
WORD_SIZE = 32
|
||||
}
|
||||
}
|
||||
linux-g++ {
|
||||
GCC64 = $$system($$QMAKE_CXX -Q --help=target | grep m64)
|
||||
contains(GCC64,[enabled]) {
|
||||
WORD_SIZE = 64
|
||||
}
|
||||
else {
|
||||
WORD_SIZE = 32
|
||||
}
|
||||
}
|
||||
linux-g++-32 {
|
||||
WORD_SIZE = 32
|
||||
}
|
||||
linux-g++-64 {
|
||||
WORD_SIZE = 64
|
||||
}
|
||||
macx-clang {
|
||||
# TODO
|
||||
WORD_SIZE = 64
|
||||
}
|
||||
Reference in New Issue
Block a user