Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
3fb01a82
Commit
3fb01a82
authored
11 years ago
by
Roman Tsisyk
Browse files
Options
Downloads
Patches
Plain Diff
Add an error message about GCC 4.7 and libobjc2 to CMake
parent
202fe45a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/compiler.cmake
+7
-2
7 additions, 2 deletions
cmake/compiler.cmake
with
7 additions
and
2 deletions
cmake/compiler.cmake
+
7
−
2
View file @
3fb01a82
...
...
@@ -23,11 +23,16 @@ if (CMAKE_C_COMPILER_ID STREQUAL Clang)
endif
()
# Check GCC version:
# GCC older than 4.6 is not supported.
if
(
CMAKE_COMPILER_IS_GNUCC
)
execute_process
(
COMMAND
${
CMAKE_C_COMPILER
}
-dumpversion
OUTPUT_VARIABLE CC_VERSION
)
if
(
CC_VERSION VERSION_GREATER 4.4.5 OR CC_VERSION VERSION_EQUAL 4.4.5
)
if
(
CC_VERSION VERSION_GREATER 4.7 OR CC_VERSION VERSION_EQUAL 4.7
)
message
(
FATAL_ERROR
"GNU GCC version >= 4.7 has well known problems with "
"GNUstep's libobjc2 runtime which is used by Tarantool. "
"The target binary will be unusable. Please you use CC=gcc-4.6 "
"or CC=clang or upgrade to Tarantool 1.5.x or later."
)
elseif
(
CC_VERSION VERSION_GREATER 4.4.5 OR CC_VERSION VERSION_EQUAL 4.4.5
)
message
(
STATUS
"
${
CMAKE_C_COMPILER
}
version >= 4.4.5 --
${
CC_VERSION
}
"
)
else
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment