-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Cosima Neidahl <opna2608@protonmail.com> add patchfile and multiarch function
- Loading branch information
Showing
2 changed files
with
63 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 41e750142b44465f3af197b7e2f0d6f54fc48c2d Mon Sep 17 00:00:00 2001 | ||
From: OPNA2608 <opna2608@protonmail.com> | ||
Date: Mon, 21 Oct 2024 17:42:24 +0200 | ||
Subject: [PATCH] Mark Lua symbols as C symbols | ||
|
||
Otherwise linking against our Lua built by a C-compiler fails due to the symbols being resolved as C++ symbols. | ||
--- | ||
interpreter.h | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/interpreter.h b/interpreter.h | ||
index 6c405a1..c471ecb 100644 | ||
--- a/interpreter.h | ||
+++ b/interpreter.h | ||
@@ -9,9 +9,11 @@ | ||
#define INTERPRETER_H_ | ||
|
||
// Due to longjmp behaviour, we must build Lua as C++ to avoid UB | ||
+extern "C" { | ||
#include <lua.h> | ||
#include <lualib.h> | ||
#include <lauxlib.h> | ||
+} | ||
|
||
#include "common.h" | ||
#include <unordered_map> | ||
-- | ||
2.44.1 | ||
|
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