Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro-core
Commits
5fb82764
Commit
5fb82764
authored
Nov 03, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add no-longjmp things
parent
7dacdd6d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
premake/dll.lua
premake/dll.lua
+5
-2
premake/lua.lua
premake/lua.lua
+0
-2
premake5.lua
premake5.lua
+1
-1
No files found.
premake/dll.lua
View file @
5fb82764
newoption
{
trigger
=
"lua-dir"
,
description
=
""
,
value
=
"PATH"
,
default
=
"./lua"
}
newoption
{
trigger
=
"lua-dir"
,
description
=
""
,
value
=
"PATH"
,
default
=
"./lua"
}
newoption
{
trigger
=
"sqlite3-dir"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"sqlite3-dir"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"no-longjmp"
,
description
=
"Disable use of longjmp for error handling in Lua"
}
boolOptions
=
{
boolOptions
=
{
"no-lua-safe"
,
"no-lua-safe"
,
...
@@ -33,7 +34,9 @@ workspace "ocgcoredll"
...
@@ -33,7 +34,9 @@ workspace "ocgcoredll"
configurations
{
"Release"
,
"Debug"
}
configurations
{
"Release"
,
"Debug"
}
platforms
{
"x64"
,
"x32"
,
"arm64"
,
"wasm"
}
platforms
{
"x64"
,
"x32"
,
"arm64"
,
"wasm"
}
if
not
GetParam
(
"no-longjmp"
)
then
defines
{
"LUA_USE_LONGJMP"
}
defines
{
"LUA_USE_LONGJMP"
}
end
for
_
,
boolOption
in
ipairs
(
boolOptions
)
do
for
_
,
boolOption
in
ipairs
(
boolOptions
)
do
ApplyBoolean
(
boolOption
)
ApplyBoolean
(
boolOption
)
...
@@ -79,7 +82,7 @@ workspace "ocgcoredll"
...
@@ -79,7 +82,7 @@ workspace "ocgcoredll"
filter
"system:linux"
filter
"system:linux"
defines
{
"LUA_USE_LINUX"
}
defines
{
"LUA_USE_LINUX"
}
pic
"On"
pic
"On"
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
}
--
linkoptions { "-static-libstdc++", "-static-libgcc" }
filter
"platforms:wasm"
filter
"platforms:wasm"
toolset
"emcc"
toolset
"emcc"
...
...
premake/lua.lua
View file @
5fb82764
...
@@ -5,8 +5,6 @@ project "lua"
...
@@ -5,8 +5,6 @@ project "lua"
files
{
"src/*.c"
,
"src/*.h"
}
files
{
"src/*.c"
,
"src/*.h"
}
removefiles
{
"src/lua.c"
,
"src/luac.c"
,
"src/onelua.c"
}
removefiles
{
"src/lua.c"
,
"src/luac.c"
,
"src/onelua.c"
}
defines
{
"LUA_USE_LONGJMP"
}
if
not
GetParam
(
"no-lua-safe"
)
then
if
not
GetParam
(
"no-lua-safe"
)
then
removefiles
{
"src/linit.c"
}
removefiles
{
"src/linit.c"
}
end
end
...
...
premake5.lua
View file @
5fb82764
...
@@ -28,5 +28,5 @@ project "ocgcore"
...
@@ -28,5 +28,5 @@ project "ocgcore"
defines
{
"LUA_USE_LINUX"
}
defines
{
"LUA_USE_LINUX"
}
if
OCGCORE_DYNAMIC
then
if
OCGCORE_DYNAMIC
then
pic
"On"
pic
"On"
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
}
--
linkoptions { "-static-libstdc++", "-static-libgcc" }
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment