Skip to content

Commit 5261470

Browse files
committed
fixup: try opt-out from experimetnal node_api flag
1 parent 3944f01 commit 5261470

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.evergreen/print-compass-env.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,10 @@ function printCompassEnv() {
108108
printVar('EVERGREEN_REVISION', process.env.EVERGREEN_REVISION);
109109
printVar('EVERGREEN_REVISION_ORDER_ID', process.env.EVERGREEN_REVISION_ORDER_ID);
110110

111-
if (process.platform === 'darwin') {
112-
// Without this, kerberos 2.1.1 is broken on macOS, but this flag is only
113-
// really relevant for Linux.
114-
// https://jira.mongodb.org/browse/NODE-6320
115-
printVar('GYP_DEFINES', 'kerberos_use_rtld=false');
116-
}
111+
// https://jira.mongodb.org/browse/NODE-6320
112+
printVar('GYP_DEFINES', `kerberos_use_rtld=${process.platform === 'linux'}`);
113+
printVar('CFLAGS', '-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT=1');
114+
printVar('CXXFLAGS', '-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT=1');
117115
}
118116

119117
printCompassEnv();

0 commit comments

Comments
 (0)