build: disable NODE_OPTIONS
Production binaries shall NOT take NODE_OPTIONS from end-users. Only the users (developers who use pkg to package their project) should have control over the flags via the "bake in" (--options) mechanism. Bug: vercel/pkg#954, vercel/pkg#989, vercel/pkg#1194, vercel/pkg#1517
This commit is contained in:
parent
4a92784a1c
commit
7f3403bd71
@ -55,6 +55,9 @@ function getConfigureArgs(major: number, targetPlatform: string): string[] {
|
||||
}
|
||||
}
|
||||
|
||||
// production binaries do NOT take NODE_OPTIONS from end-users
|
||||
args.push('--without-node-options');
|
||||
|
||||
// DTrace
|
||||
args.push('--without-dtrace');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user