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
a9730be7
Commit
a9730be7
authored
Jan 06, 2017
by
Wenzel Jakob
Browse files
use -x flag to strip shared libraries on OSX (fixes #595)
parent
0f294e26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
docs/changelog.rst
docs/changelog.rst
+6
-0
tools/pybind11Tools.cmake
tools/pybind11Tools.cmake
+1
-1
No files found.
docs/changelog.rst
View file @
a9730be7
...
...
@@ -6,6 +6,12 @@ Changelog
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy.
v2.0.2 (not yet released)
-----------------------------------------------------
* Use -x flag to strip shared libraries on OSX
`#595 <https://github.com/pybind/pybind11/pull/595>`_.
v2.0.1 (Jan 4, 2017)
-----------------------------------------------------
...
...
tools/pybind11Tools.cmake
View file @
a9730be7
...
...
@@ -140,7 +140,7 @@ function(pybind11_add_module target_name)
if
(
CMAKE_STRIP
)
if
(
APPLE
)
add_custom_command
(
TARGET
${
target_name
}
POST_BUILD
COMMAND
${
CMAKE_STRIP
}
-
u -r
$<TARGET_FILE:
${
target_name
}
>
)
COMMAND
${
CMAKE_STRIP
}
-
x
$<TARGET_FILE:
${
target_name
}
>
)
else
()
add_custom_command
(
TARGET
${
target_name
}
POST_BUILD
COMMAND
${
CMAKE_STRIP
}
$<TARGET_FILE:
${
target_name
}
>
)
...
...
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