-
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
ISL Conan 2.0 compatibility #14916
Closed
Closed
ISL Conan 2.0 compatibility #14916
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
120a723
ISL Conan 2.0 compatibility
System-Arch e628faa
Fixed lint errors
System-Arch cee6b0c
Fixed new lint errors
System-Arch 97058c4
Apply suggestions from code review
System-Arch 1c42d56
Post code review tweaks
System-Arch 27a94b0
Add import for check_min_vs
System-Arch 5010083
Work around vs_ide_version not being part of public API
System-Arch 29cc91b
Fixed improper use of conanfile
System-Arch 2b7527e
Treat version numbers as strings
System-Arch e2da76e
Tweak msvc env. vars
System-Arch 5c446fd
Update conanfile.py
System-Arch 8a2b47c
Update naming of user.automake:lib-wrapper
System-Arch c6adc1c
Make gmp a build_requirement
System-Arch 1b672c7
Bump required_conan_version
System-Arch a97dc24
Make gmp a requirement
System-Arch bbf710c
Fix build issues on Windows and add support for 0.25 release
System-Arch a9aafd4
Fixed misplaced bracket
System-Arch d0f1d37
Export patches
System-Arch 4141271
Eliminate duplicate test file per review feedback
System-Arch 1719bea
UNIX is case sensitive
System-Arch d80d1bd
Try again
System-Arch d1a750b
Drop support for older (unused) versions
System-Arch 8357e0b
Added autogen option to shield autoconf workflow
System-Arch 05acd93
Only pass CFLAGS_FOR_BUILD for 0.24 with -MD*
System-Arch 072dacd
Also pass CC_FOR_BUILD to avoid confusion with GCC
System-Arch 60d34e9
Bump required_conan_version
System-Arch 114ac12
Bumped required_conan_version
System-Arch 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
sources: | ||
"0.25": | ||
url: "https://libisl.sourceforge.io/isl-0.25.tar.gz" | ||
sha256: "acac270b41f6a533cbe5cf26463877ed5e4107051a5457b9d50b58576a59c6c5" | ||
"0.24": | ||
url: "https://libisl.sourceforge.io/isl-0.24.tar.gz" | ||
sha256: "26e6e4d60ad59b3fff9948eb36743f0c874e124e410ef5bab930d0f546bc580d" | ||
"0.23": | ||
url: "https://libisl.sourceforge.io/isl-0.23.tar.gz" | ||
sha256: "19e77cb562ab3da5a37f263208d6f902ae3a9d52c756bf6eb1a6b2f8a74b883c" | ||
"0.22": | ||
url: "https://libisl.sourceforge.io/isl-0.22.tar.gz" | ||
sha256: "d0c6714e4427d3eb964388afe526a8e0f69687da7e944f1ad66ffa639923be46" | ||
patches: | ||
"0.24": | ||
- patch_file: "patches/0.24-0001-fix-ac_test_cflags.patch" | ||
patch_description: "Fix ac_test_CFLAGS logic error" | ||
patch_type: "portability" |
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
11 changes: 11 additions & 0 deletions
11
recipes/isl/all/patches/0.24-0001-fix-ac_test_cflags.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,11 @@ | ||
--- m4/ax_cc_maxopt.m4 | ||
+++ m4/ax_cc_maxopt.m4 | ||
@@ -65,7 +65,7 @@ | ||
acx_maxopt_portable=$withval, acx_maxopt_portable=no) | ||
|
||
# Try to determine "good" native compiler flags if none specified via CFLAGS | ||
-if test "$ac_test_CFLAGS" != "set"; then | ||
+if test "x$ac_test_CFLAGS" = "x"; then | ||
CFLAGS="" | ||
case $ax_cv_c_compiler_vendor in | ||
dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" |
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,8 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package C) | ||
|
||
include("${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") | ||
conan_basic_setup() | ||
find_package(isl REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.c) | ||
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS}) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE isl::isl) |
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,17 +1,26 @@ | ||
from conans import ConanFile, CMake, tools | ||
from conan import ConanFile | ||
from conan.tools.cmake import CMake, cmake_layout | ||
from conan.tools.build import cross_building | ||
import os | ||
|
||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "cmake" | ||
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv" | ||
System-Arch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
test_type = "explicit" | ||
|
||
def layout(self): | ||
cmake_layout(self) | ||
|
||
def requirements(self): | ||
self.requires(self.tested_reference_str) | ||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def test(self): | ||
if not tools.cross_building(self.settings): | ||
bin_path = os.path.join("bin", "test_package") | ||
self.run(bin_path, run_environment=True) | ||
if not cross_building(self): | ||
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package") | ||
self.run(bin_path, env="conanrun") |
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,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package C) | ||
|
||
include("${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") | ||
conan_basic_setup() | ||
|
||
add_executable(${PROJECT_NAME} ../test_package/test_package.c) | ||
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS}) |
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,17 @@ | ||
from conans import ConanFile, CMake, tools | ||
import os | ||
|
||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "cmake" | ||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def test(self): | ||
if not tools.cross_building(self.settings): | ||
bin_path = os.path.join("bin", "test_package") | ||
self.run(bin_path, run_environment=True) |
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,7 +1,5 @@ | ||
versions: | ||
"0.24": | ||
folder: "all" | ||
"0.23": | ||
"0.25": | ||
folder: "all" | ||
"0.22": | ||
"0.24": | ||
folder: "all" |
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.