Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
d361ea15
"tests/test_class_sh_basic.cpp" did not exist on "b3ad3ac43ff1a3813074d394a4cd4ca7c6bf70e5"
Commit
d361ea15
authored
Feb 14, 2017
by
Dean Moldovan
Committed by
Wenzel Jakob
Feb 14, 2017
Browse files
Don't strip debug symbols in debug mode (#669)
parent
d5ce82b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/pybind11Tools.cmake
tools/pybind11Tools.cmake
+2
-2
No files found.
tools/pybind11Tools.cmake
View file @
d361ea15
...
@@ -173,8 +173,8 @@ function(pybind11_add_module target_name)
...
@@ -173,8 +173,8 @@ function(pybind11_add_module target_name)
_pybind11_add_lto_flags
(
${
target_name
}
${
ARG_THIN_LTO
}
)
_pybind11_add_lto_flags
(
${
target_name
}
${
ARG_THIN_LTO
}
)
# Set the default symbol visibility to hidden (very important to obtain small binaries
)
if
(
NOT MSVC AND NOT
${
CMAKE_BUILD_TYPE
}
MATCHES Debug
)
if
(
NOT MSVC
)
# Set the default symbol visibility to hidden (very important to obtain small binaries
)
target_compile_options
(
${
target_name
}
PRIVATE
"-fvisibility=hidden"
)
target_compile_options
(
${
target_name
}
PRIVATE
"-fvisibility=hidden"
)
# Strip unnecessary sections of the binary on Linux/Mac OS
# Strip unnecessary sections of the binary on Linux/Mac OS
...
...
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