Skip to content

Commit

Permalink
Workaround bug in XCode 14.2 linker not respecting RTLD_LAZY
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 16, 2024
1 parent c6e5aea commit 0e879db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions ruby-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export async function install(platform, engine, version) {
}
}

// https://github.com/oracle/truffleruby/issues/3390
if (engine.startsWith('truffleruby') && common.floatVersion(version) >= 24.0 && !common.isSelfHostedRunner() && common.getOSNameVersionArch() === 'macos-12-x64') {
console.log('Setting MACOSX_DEPLOYMENT_TARGET=11.0 to workaround bug in XCode 14.2 linker not respecting RTLD_LAZY, see https://github.com/oracle/truffleruby/issues/3390')
core.exportVariable('MACOSX_DEPLOYMENT_TARGET', '11.0')
}

return rubyPrefix
}

Expand Down

0 comments on commit 0e879db

Please sign in to comment.