mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Introduce fast path for buffered ReadableStream (#13704)
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
16
src/codegen/buildTypeFlag.ts
Normal file
16
src/codegen/buildTypeFlag.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
const buildTypeFlag = process.argv.find(argv => {
|
||||
if (argv.startsWith("--build-type=")) {
|
||||
return argv;
|
||||
}
|
||||
});
|
||||
|
||||
const enum BuildType {
|
||||
debug,
|
||||
release,
|
||||
}
|
||||
if (buildTypeFlag) {
|
||||
process.argv.splice(process.argv.indexOf(buildTypeFlag), 1);
|
||||
}
|
||||
let buildType = buildTypeFlag ? BuildType[buildTypeFlag.split("=")[1].toLowerCase()] : BuildType.release;
|
||||
|
||||
export { BuildType, buildType };
|
||||
Reference in New Issue
Block a user