mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix gcc ver check
This commit is contained in:
@ -185,14 +185,6 @@ mac {
|
||||
}
|
||||
}
|
||||
|
||||
gcc {
|
||||
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")
|
||||
COMPILER_MAJOR_VERSION_ARRAY = $$split(COMPILER_VERSION, ".")
|
||||
COMPILER_MAJOR_VERSION = $$member(COMPILER_MAJOR_VERSION_ARRAY, 0)
|
||||
lessThan(COMPILER_MAJOR_VERSION, 5): CONFIG += build_gcc_less_5
|
||||
lessThan(COMPILER_MAJOR_VERSION, 6): CONFIG += build_gcc_less_6
|
||||
}
|
||||
|
||||
# DEFINES
|
||||
core_windows {
|
||||
DEFINES += WIN32 _WIN32
|
||||
@ -225,11 +217,19 @@ core_linux {
|
||||
|
||||
QMAKE_CXXFLAGS += --sysroot $$QMAKE_CUSTOM_SYSROOT
|
||||
QMAKE_LFLAGS += --sysroot $$QMAKE_CUSTOM_SYSROOT
|
||||
CONFIG += build_gcc_less_6
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gcc {
|
||||
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")
|
||||
COMPILER_MAJOR_VERSION_ARRAY = $$split(COMPILER_VERSION, ".")
|
||||
COMPILER_MAJOR_VERSION = $$member(COMPILER_MAJOR_VERSION_ARRAY, 0)
|
||||
lessThan(COMPILER_MAJOR_VERSION, 5): CONFIG += build_gcc_less_5
|
||||
lessThan(COMPILER_MAJOR_VERSION, 6): CONFIG += build_gcc_less_6
|
||||
}
|
||||
|
||||
core_linux_host_arm64 {
|
||||
message("build on arm64")
|
||||
DEFINES += _ARM_ALIGN_
|
||||
|
||||
Reference in New Issue
Block a user