fix flag mispelling
This commit is contained in:
parent
486f8a070a
commit
7e5202582a
4 changed files with 10 additions and 3 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules/
|
6
bevy-cli
Executable file
6
bevy-cli
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
BASEDIR=$(realpath $(dirname $0))
|
||||
|
||||
node "$BASEDIR/src/index.js" $@
|
||||
|
|
@ -28,7 +28,7 @@ export const DynamicLinking = Object.freeze({
|
|||
})
|
||||
|
||||
export const DevelopmentOptimizations = Object.freeze({
|
||||
active: ({ dynopts }) => dynopts,
|
||||
active: ({ dynopt }) => dynopt,
|
||||
apply: curry((_params, project) =>
|
||||
map(
|
||||
'Cargo.toml',
|
||||
|
@ -40,7 +40,7 @@ export const DevelopmentOptimizations = Object.freeze({
|
|||
})
|
||||
|
||||
export const ReleaseOptimizations = Object.freeze({
|
||||
active: ({ relopts }) => relopts,
|
||||
active: ({ relopt }) => relopt,
|
||||
apply: curry((_params, project) => {
|
||||
const relOpts = { 'codegen-units': 1, lto: 'thin' }
|
||||
const wasmOpts = { inherits: 'release', 'opt-level': 's', strip: 'debuginfo' }
|
||||
|
|
|
@ -57,7 +57,7 @@ const defaultLinker = () => process.platform === 'darwin' ? undefined : 'lld'
|
|||
const schema = Object.freeze({
|
||||
string: ['bevy-version', 'linker'],
|
||||
boolean: ['devopt', 'relopt', 'dynlink', 'nightly', 'cranelift', 'genshare', 'parallel', 'version'],
|
||||
alias: { b: 'bevy-version', l: 'linker', g: 'genshare', c: 'cranelift', n: 'nightly', d: 'dynlink', p: 'parallel', v: 'version', h: 'help' },
|
||||
alias: { b: 'bevy-version', l: 'linker', q: 'devopt', r: 'relopt', g: 'genshare', c: 'cranelift', n: 'nightly', d: 'dynlink', p: 'parallel', v: 'version', h: 'help' },
|
||||
default: { 'bevy-version': await defaultBevyVersion(), devopt: true, relopt: true, genshare: true, parallel: true, cranelift: true, nightly: true, dynlink: true, linker: defaultLinker() }
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue