-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Investigate sol2 CI build issue (#648)
* trigger CI to see if sol2 example is reliably failing * attempt patch from github comment * fix patch * add info to comment on patch * run fix-format * simplify patchfile
- Loading branch information
1 parent
cd28d44
commit 4b3a60f
Showing
2 changed files
with
26 additions
and
2 deletions.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff -u a/include/sol/function_types_stateless.hpp b/include/types/function_types_stateless.hpp | ||
--- a/include/sol/function_types_stateless.hpp | ||
+++ b/include/sol/function_types_stateless.hpp | ||
@@ -322,7 +322,13 @@ namespace sol { namespace function_detail { | ||
} | ||
|
||
template <bool is_yielding, bool no_trampoline> | ||
- static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) { | ||
+ static int call(lua_State* L) | ||
+#if SOL_IS_ON(SOL_COMPILER_CLANG) | ||
+ // apparent regression in clang 18 - llvm/llvm-project#91362 | ||
+#else | ||
+ noexcept(std::is_nothrow_copy_assignable_v<T>) | ||
+#endif | ||
+ { | ||
int nr; | ||
if constexpr (no_trampoline) { | ||
nr = real_call(L); |