Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
eea34004
Unverified
Commit
eea34004
authored
Jul 30, 2019
by
John Kessenich
Committed by
GitHub
Jul 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1859 from zoddicus/fixNoRTTIForWindows
Convert no RTTI rule to be compiler specific
parents
f04f1f93
8126eb19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
CMakeLists.txt
CMakeLists.txt
+4
-2
No files found.
CMakeLists.txt
View file @
eea34004
...
...
@@ -88,10 +88,14 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
add_compile_options
(
-Wall -Wmaybe-uninitialized -Wuninitialized -Wunused -Wunused-local-typedefs
-Wunused-parameter -Wunused-value -Wunused-variable -Wunused-but-set-parameter -Wunused-but-set-variable -fno-exceptions
)
add_compile_options
(
-Wno-reorder
)
# disable this from -Wall, since it happens all over.
add_compile_options
(
-fno-rtti
)
elseif
(
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"Clang"
)
add_compile_options
(
-Wall -Wuninitialized -Wunused -Wunused-local-typedefs
-Wunused-parameter -Wunused-value -Wunused-variable
)
add_compile_options
(
-Wno-reorder
)
# disable this from -Wall, since it happens all over.
add_compile_options
(
-fno-rtti
)
elseif
(
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"MSVC"
)
add_compile_options
(
/GR-
)
# Disable RTTI
endif
()
# Request C++11
...
...
@@ -105,8 +109,6 @@ else()
set
(
CMAKE_CXX_EXTENSIONS OFF
)
endif
()
add_compile_options
(
-fno-rtti
)
function
(
glslang_set_link_args TARGET
)
# For MinGW compiles, statically link against the GCC and C++ runtimes.
# This avoids the need to ship those runtimes as DLLs.
...
...
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