Skip to content

Commit 0e879db

Browse files
committed
Workaround bug in XCode 14.2 linker not respecting RTLD_LAZY
* See oracle/truffleruby#3390
1 parent c6e5aea commit 0e879db

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dist/index.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ruby-builder.js

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ export async function install(platform, engine, version) {
5858
}
5959
}
6060

61+
// https://github.com/oracle/truffleruby/issues/3390
62+
if (engine.startsWith('truffleruby') && common.floatVersion(version) >= 24.0 && !common.isSelfHostedRunner() && common.getOSNameVersionArch() === 'macos-12-x64') {
63+
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')
64+
core.exportVariable('MACOSX_DEPLOYMENT_TARGET', '11.0')
65+
}
66+
6167
return rubyPrefix
6268
}
6369

0 commit comments

Comments
 (0)