Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6714ec12
Commit
6714ec12
authored
Dec 17, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-783 append -Wvla to compiler flags to allow variable length arrays to be used in tokudb
parent
03a0eb3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
storage/tokudb/CMakeLists.txt
storage/tokudb/CMakeLists.txt
+20
-4
No files found.
storage/tokudb/CMakeLists.txt
View file @
6714ec12
...
...
@@ -46,18 +46,34 @@ include(CheckCXXCompilerFlag)
macro
(
set_cflags_if_supported
)
foreach
(
flag
${
ARGN
}
)
check_c_compiler_flag
(
${
flag
}
HAVE_C_
${
flag
}
)
if
(
HAVE_C_
${
flag
}
)
string
(
REGEX REPLACE
"-"
"_"
temp_flag
${
flag
}
)
check_c_compiler_flag
(
${
flag
}
HAVE_C_
${
temp_flag
}
)
if
(
HAVE_C_
${
temp_flag
}
)
set
(
CMAKE_C_FLAGS
"
${
flag
}
${
CMAKE_C_FLAGS
}
"
)
endif
()
check_cxx_compiler_flag
(
${
flag
}
HAVE_CXX_
${
flag
}
)
if
(
HAVE_CXX_
${
flag
}
)
check_cxx_compiler_flag
(
${
flag
}
HAVE_CXX_
${
temp_
flag
}
)
if
(
HAVE_CXX_
${
temp_
flag
}
)
set
(
CMAKE_CXX_FLAGS
"
${
flag
}
${
CMAKE_CXX_FLAGS
}
"
)
endif
()
endforeach
(
flag
)
endmacro
(
set_cflags_if_supported
)
macro
(
append_cflags_if_supported
)
foreach
(
flag
${
ARGN
}
)
string
(
REGEX REPLACE
"-"
"_"
temp_flag
${
flag
}
)
check_c_compiler_flag
(
${
flag
}
HAVE_C_
${
temp_flag
}
)
if
(
HAVE_C_
${
temp_flag
}
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
flag
}
"
)
endif
()
check_cxx_compiler_flag
(
${
flag
}
HAVE_CXX_
${
temp_flag
}
)
if
(
HAVE_CXX_
${
temp_flag
}
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
flag
}
"
)
endif
()
endforeach
(
flag
)
endmacro
(
append_cflags_if_supported
)
set_cflags_if_supported
(
-Wno-missing-field-initializers
)
append_cflags_if_supported
(
-Wno-vla
)
ADD_SUBDIRECTORY
(
ft-index
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment