-
Notifications
You must be signed in to change notification settings - Fork 2.1k
antlr4-cppruntime: Upgrade to 4.11.0/4.11.1 #12902
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
Merged
Merged
Changes from 28 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
52b220e
antlr4-cppruntime: Upgrade to 4.11.1.
0xFireWolf 4c5e97d
antlr4-cppruntime: No longer requires libuuid as of 4.11.
0xFireWolf b53e35b
antlr4-cppruntime: The minimum version of GCC is now 8.
0xFireWolf fadf33c
antlr4-cppruntime: Revert the minimum version of GCC to 7.
0xFireWolf 4aa3e2d
antlr4-cppruntime: Add the patches that fix the compiler errors repor…
0xFireWolf 66985e4
antlr4-cppruntime: Remove the trailing space at the end of each patch…
0xFireWolf 5770555
antlr4-cppruntime: Fix the version key in conandata.yml.
0xFireWolf a73153d
antlr4-cppruntime: CI seems to be stuck.
0xFireWolf 163445f
Prepare for Conan 2.0
uilianries 98bdbc5
Fix the comparisons.
0xFireWolf b71ca7c
Retrigger the CI.
0xFireWolf fccf201
antlr4-cppruntime: Add patch files that drop the `libuuid` dependency…
0xFireWolf 6ce28ef
antlr4-cppruntime: Register patch files for 4.9.3, 4.10 and 4.10.1.
0xFireWolf e3bbcf8
antlr4-cppruntime: Remove the requirement of `libuuid/1.0.3` and its …
0xFireWolf 1824688
antlr4-cppruntime: Enable ARM builds on all supported versions.
0xFireWolf 15015b3
antlr4-cppruntime: Remove `PkgConfigDeps` from the Conan file since `…
0xFireWolf e4bc403
antlr4-cppruntime: `_create_cmake_module_alias_targets` should not be…
0xFireWolf 4ad831b
antlr4-cppruntime: Simplify the implementation and fix the typos in `…
0xFireWolf 6424471
antlr4-cppruntime: Restore the CMake wrapper otherwise antlr's runtim…
0xFireWolf 7873f98
antlr4-cppruntime: Use the new function `check_min_vs()`` to handle b…
0xFireWolf 66c2489
antlr4-cppruntime: Remove the dead releases, 4.10.0 and 4.11.0.
0xFireWolf b3d2803
antlr4-cppruntime: Add the metadata for each patch for better record …
0xFireWolf 88e1f23
antlr4-cppruntime: Remove `VirtualBuildEnv` since there is no more bu…
0xFireWolf 507c818
antlr4-cppruntime: Fix the minimum version of the MSVC compiler; shou…
0xFireWolf c95429c
antlr4-cppruntime: Set `WITH_STATIC_CRT` in CMakeToolchain's cached v…
0xFireWolf c0d9336
antlr4-cppruntime: Remove the `CMakeLists.txt` wrapper with the new c…
0xFireWolf 6eab2f1
antlr4-cppruntime: Simplify the implementation of `validate()`.
0xFireWolf 9f95ef0
antlr4-cppruntime: Remove 4.10 and 4.11 from `config.yml`.
0xFireWolf d9cc6f5
antlr4-cppruntime: Remove `Visual Studio` and `msvc` from the C++17 d…
0xFireWolf 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
15 changes: 15 additions & 0 deletions
15
recipes/antlr4-cppruntime/all/patches/0002-update-FlatHashSet.patch
This file contains hidden or 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,15 @@ | ||
--- runtime/Cpp/runtime/src/FlatHashSet.h | ||
+++ runtime/Cpp/runtime/src/FlatHashSet.h | ||
@@ -48,9 +48,9 @@ | ||
using FlatHashSet = absl::flat_hash_set<Key, Hash, Equal, Allocator>; | ||
#else | ||
template <typename Key, | ||
- typename Hash = typename std::unordered_set<Key>::hasher, | ||
- typename Equal = typename std::unordered_set<Key>::key_equal, | ||
- typename Allocator = typename std::unordered_set<Key>::allocator_type> | ||
+ typename Hash = std::hash<Key>, | ||
+ typename Equal = std::equal_to<Key>, | ||
+ typename Allocator = std::allocator<Key>> | ||
using FlatHashSet = std::unordered_set<Key, Hash, Equal, Allocator>; | ||
#endif | ||
|
15 changes: 15 additions & 0 deletions
15
recipes/antlr4-cppruntime/all/patches/0003-update-FlatHashMap.patch
This file contains hidden or 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,15 @@ | ||
--- runtime/Cpp/runtime/src/FlatHashMap.h | ||
+++ runtime/Cpp/runtime/src/FlatHashMap.h | ||
@@ -48,9 +48,9 @@ | ||
using FlatHashMap = absl::flat_hash_map<Key, Value, Hash, Equal, Allocator>; | ||
#else | ||
template <typename Key, typename Value, | ||
- typename Hash = typename std::unordered_map<Key, Value>::hasher, | ||
- typename Equal = typename std::unordered_map<Key, Value>::key_equal, | ||
- typename Allocator = typename std::unordered_map<Key, Value>::allocator_type> | ||
+ typename Hash = std::hash<Key>, | ||
+ typename Equal = std::equal_to<Key>, | ||
+ typename Allocator = std::allocator<std::pair<const Key, Value>>> | ||
using FlatHashMap = std::unordered_map<Key, Value, Hash, Equal, Allocator>; | ||
#endif | ||
|
13 changes: 13 additions & 0 deletions
13
recipes/antlr4-cppruntime/all/patches/0004-update-DropLibuuid-4.10.x-1.patch
This file contains hidden or 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 @@ | ||
--- runtime/Cpp/CMakeLists.txt | ||
+++ runtime/Cpp/CMakeLists.txt | ||
@@ -41,10 +41,6 @@ | ||
CMAKE_POLICY(SET CMP0054 OLD) | ||
endif() | ||
|
||
-if(CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
- find_package(PkgConfig REQUIRED) | ||
- pkg_check_modules(UUID REQUIRED uuid) | ||
0xFireWolf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
-endif() | ||
if(APPLE) | ||
find_library(COREFOUNDATION_LIBRARY CoreFoundation) | ||
endif() |
14 changes: 14 additions & 0 deletions
14
recipes/antlr4-cppruntime/all/patches/0004-update-DropLibuuid-4.10.x-2.patch
This file contains hidden or 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,14 @@ | ||
--- runtime/Cpp/runtime/CMakeLists.txt | ||
+++ runtime/Cpp/runtime/CMakeLists.txt | ||
@@ -69,10 +69,7 @@ | ||
gtest_discover_tests(antlr4_tests) | ||
endif() | ||
|
||
-if(CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
- target_link_libraries(antlr4_shared ${UUID_LIBRARIES}) | ||
- target_link_libraries(antlr4_static ${UUID_LIBRARIES}) | ||
-elseif(APPLE) | ||
+if(APPLE) | ||
target_link_libraries(antlr4_shared ${COREFOUNDATION_LIBRARY}) | ||
target_link_libraries(antlr4_static ${COREFOUNDATION_LIBRARY}) | ||
endif() |
13 changes: 13 additions & 0 deletions
13
recipes/antlr4-cppruntime/all/patches/0004-update-DropLibuuid-4.9.3-1.patch
This file contains hidden or 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 @@ | ||
--- runtime/Cpp/CMakeLists.txt | ||
+++ runtime/Cpp/CMakeLists.txt | ||
@@ -39,10 +39,6 @@ | ||
CMAKE_POLICY(SET CMP0054 OLD) | ||
endif() | ||
|
||
-if(CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
- find_package(PkgConfig REQUIRED) | ||
- pkg_check_modules(UUID REQUIRED uuid) | ||
-endif() | ||
if(APPLE) | ||
find_library(COREFOUNDATION_LIBRARY CoreFoundation) | ||
endif() |
14 changes: 14 additions & 0 deletions
14
recipes/antlr4-cppruntime/all/patches/0004-update-DropLibuuid-4.9.3-2.patch
This file contains hidden or 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,14 @@ | ||
--- runtime/Cpp/runtime/CMakeLists.txt | ||
+++ runtime/Cpp/runtime/CMakeLists.txt | ||
@@ -75,10 +75,7 @@ | ||
endif() | ||
endif() | ||
|
||
-if(CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
- target_link_libraries(antlr4_shared ${UUID_LIBRARIES}) | ||
- target_link_libraries(antlr4_static ${UUID_LIBRARIES}) | ||
-elseif(APPLE) | ||
+if(APPLE) | ||
target_link_libraries(antlr4_shared ${COREFOUNDATION_LIBRARY}) | ||
target_link_libraries(antlr4_static ${COREFOUNDATION_LIBRARY}) | ||
endif() |
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.