Skip to content

Fix ranlib when libdir is set. - #1267

Merged
Simn merged 4 commits into
HaxeFoundation:masterfrom
FunkinCrew:bugfix/ranlib-libdir-fix
Nov 25, 2025
Merged

Fix ranlib when libdir is set.#1267
Simn merged 4 commits into
HaxeFoundation:masterfrom
FunkinCrew:bugfix/ranlib-libdir-fix

Conversation

@MAJigsaw77

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tools/hxcpp/Linker.hx Outdated
{
args = [out_name];
args = [mLibDir!=""?mLibDir+"/"+file_name:out_name];
var result = ProcessManager.runCommand("", mRanLib, args, true, true, false, "\x1b[1mRanlib:\x1b[0m " + out_name);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it would also make sense to change out_name here for consistency, same for line 295

@MAJigsaw77
MAJigsaw77 requested a review from tobil4sk November 5, 2025 21:52
Comment thread tools/hxcpp/Linker.hx Outdated
{
sys.io.File.copy( mLibDir+"/"+file_name, out_name );
FileSystem.deleteFile( mLibDir+"/"+file_name );
Log.info("\x1b[1mMove file: \x1b[0m" + mLibDir+"/"+file_name + " to " + out_name);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to print before doing the action, that way if the action fails and crashes then we can see what stage the build was at before failing. This is also what ProcessManager.runCommand does.

@MAJigsaw77
MAJigsaw77 requested a review from tobil4sk November 5, 2025 21:59

@tobil4sk tobil4sk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now!

@Simn
Simn merged commit beaa519 into HaxeFoundation:master Nov 25, 2025
120 checks passed
@MAJigsaw77
MAJigsaw77 deleted the bugfix/ranlib-libdir-fix branch November 26, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants