-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.7.2 added + macos cross compile support #12333
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
99a9765
0.7.2 added + macos cross compile support
willadsen c650136
linter fix
willadsen fb18efa
linter fixes
willadsen 9b40c39
Merge branch 'master' into foonathan-memory-0.7.2
willadsen ef1de5d
missing newline
willadsen b4ccfea
linter fixes
willadsen 131ca31
fixed checksum
willadsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ class FoonathanMemoryConan(ConanFile): | |
homepage = "https://github.com/foonathan/memory" | ||
url = "https://github.com/conan-io/conan-center-index" | ||
description = "STL compatible C++ memory allocator library" | ||
topics = ("memory", "STL", "RawAllocator") | ||
topics = ("memory", "stl", "rawallocator") | ||
|
||
settings = "os", "arch", "compiler", "build_type" | ||
options = { | ||
|
@@ -46,10 +46,11 @@ def configure(self): | |
del self.options.fPIC | ||
|
||
def validate(self): | ||
# FIXME: jenkins servers throw error with this combination | ||
# FIXME: jenkins servers throw error with this combination | ||
# quick fix until somebody can reproduce | ||
if hasattr(self, "settings_build") and cross_building(self): | ||
raise ConanInvalidConfiguration("Cross building is not yet supported. Contributions are welcome") | ||
if self.version == '0.7.0' or not (self.settings.os == "Macos" and self.settings.arch != self.settings_build.arch): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does it mean, only version 0.7.0 is broken? Because the message says it's not supported for any version. |
||
raise ConanInvalidConfiguration("Cross building is not yet supported. Contributions are welcome") | ||
|
||
def layout(self): | ||
cmake_layout(self, src_folder="src") | ||
|
13 changes: 13 additions & 0 deletions
13
recipes/foonathan-memory/all/patches/fix-macosCrossCompile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt | ||
index df51586..0ba9a2b 100644 | ||
--- a/tool/CMakeLists.txt | ||
+++ b/tool/CMakeLists.txt | ||
@@ -9,6 +9,8 @@ if (CMAKE_CROSSCOMPILING) | ||
# statically link when cross compiling so emulator doesn't need library paths | ||
if (MSVC) | ||
set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "/WHOLEARCHIVE") | ||
+ elseif(CMAKE_HOST_APPLE AND ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") #MacOS to MacOS | ||
+ message(STATUS "Cross compile on MacOS from ${CMAKE_HOST_SYSTEM_PROCESSOR} to ${CMAKE_OSX_ARCHITECTURES}") | ||
else() | ||
set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "-static") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"0.7.2": | ||
folder: all | ||
"0.7.1": | ||
folder: all | ||
"0.7.0": | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, add
patch_description
andpatch_type
as recommended here: https://github.com/conan-io/conan-center-index/blob/master/docs/conandata_yml_format.md#patches-fields