Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
6b5143bc
Commit
6b5143bc
authored
Jun 03, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix digits
parent
0522a080
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
gframe/premake5.lua
gframe/premake5.lua
+1
-1
premake5.lua
premake5.lua
+7
-4
No files found.
gframe/premake5.lua
View file @
6b5143bc
...
...
@@ -109,6 +109,6 @@ project "YGOPro"
links
{
"IrrKlang"
}
linkoptions
{
IRRKLANG_LINK_RPATH
}
end
if
GLIBC_VERSION
<
546
then
-- glibc less than 2.34
if
GLIBC_VERSION
<
((
2
<<
16
)
|
(
34
<<
8
))
then
-- glibc less than 2.34
links
{
"dl"
,
"pthread"
}
end
premake5.lua
View file @
6b5143bc
...
...
@@ -260,20 +260,23 @@ end
function
getGlibcVersion
()
local
output
=
os
.
outputof
(
"getconf GNU_LIBC_VERSION"
)
local
major
,
minor
=
output
:
match
(
"glibc (%d+)%.(%d+)"
)
local
major
,
minor
,
patch
=
output
:
match
(
"glibc (%d+)%.(%d+)%.?(%d*)"
)
if
major
and
minor
then
major
=
tonumber
(
major
)
minor
=
tonumber
(
minor
)
return
(
major
<<
8
)
|
minor
patch
=
tonumber
(
patch
)
or
0
return
(
major
<<
16
)
|
(
minor
<<
8
)
|
patch
end
return
0
return
nil
end
GLIBC_VERSION
=
0
if
os
.
ishost
(
"linux"
)
then
GLIBC_VERSION
=
getGlibcVersion
()
if
GLIBC_VERSION
>
0
then
print
(
"Detected glibc version: "
..
string.format
(
"%d.%d
"
,
GLIBC_VERSION
>>
8
,
GLIBC_VERSION
&
0xFF
))
print
(
"Detected glibc version: "
..
string.format
(
"%d.%d
.%d"
,
GLIBC_VERSION
>>
16
,
(
GLIBC_VERSION
>>
8
)
&
0xFF
,
GLIBC_VERSION
&
0xFF
))
else
print
(
"Could not detect glibc version, assuming it is sufficient."
)
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