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
4ccc2f48
Commit
4ccc2f48
authored
12 years ago
by
Pavel Cherenkov
Browse files
Options
Downloads
Patches
Plain Diff
bug977231: gcc version check (>=4.4) moved to cmake, cpuid.h -msse4 also checked
parent
32cdc4bd
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/CMakeLists.txt
+18
-0
18 additions, 0 deletions
core/CMakeLists.txt
core/cpu_feature.m
+0
-7
0 additions, 7 deletions
core/cpu_feature.m
with
18 additions
and
7 deletions
core/CMakeLists.txt
+
18
−
0
View file @
4ccc2f48
...
...
@@ -4,6 +4,24 @@
add_library
(
ev tarantool_ev.c
)
check_c_compiler_flag
(
"-Wno-unused-result"
gcc_has_wno_unused_result
)
check_c_compiler_flag
(
"-msse4"
gcc_has_sse4
)
check_include_file
(
"cpuid.h"
gcc_has_cpuid
)
execute_process
(
COMMAND
${
CMAKE_C_COMPILER
}
-dumpversion
OUTPUT_VARIABLE GCC_VERSION
)
if
(
GCC_VERSION VERSION_GREATER 4.4 OR GCC_VERSION VERSION_EQUAL 4.4
)
message
(
STATUS
"GCC Version >= 4.4"
)
else
()
message
(
FATAL_ERROR
"GCC version should be >= 4.4"
)
endif
()
if
(
NOT gcc_has_sse4
)
message
(
FATAL_ERROR
"GCC must support SSE4 instructions (-msse4)."
)
endif
()
if
(
NOT gcc_has_cpuid
)
message
(
FATAL_ERROR
"GCC is missing cpuid.h"
)
endif
()
if
(
gcc_has_wno_unused_result
)
set_source_files_properties
(
tarantool_ev.c
...
...
This diff is collapsed.
Click to expand it.
core/cpu_feature.m
+
0
−
7
View file @
4ccc2f48
...
...
@@ -31,13 +31,6 @@
#error "Only x86 and x86_64 architectures supported"
#endif
#ifndef __GNUC__
#error This module uses GCC intrinsic header(s) and should be compiled using gcc.
#elif ((__GNUC__ * 10000) + (__GNUC_MINOR__ * 100))
<
40400
#error
This
module
should
be
compiled
with
GCC
4.4
and
higher
#endif
/* GCC intrinsic headers */
#include
<cpuid.h>
#include
<smmintrin.h>
...
...
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