mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
Do not emit debug info by default
This basically flips the --noDebug flag to become a --debug flag, so some optimizations, like inlining, aren't skipped by default, which might be unexpected.
This commit is contained in:
@ -206,8 +206,8 @@ function ensureGitignore() {
|
||||
function ensurePackageJson() {
|
||||
console.log("- Making sure that 'package.json' contains the build commands...")
|
||||
const entryPath = path.relative(projectDir, entryFile).replace(/\\/g, "/");
|
||||
const buildUntouched = "asc " + entryPath + " -b build/untouched.wasm -t build/untouched.wat --sourceMap --validate";
|
||||
const buildOptimized = "asc " + entryPath + " -b build/optimized.wasm -t build/optimized.wat --sourceMap --validate --optimize --noDebug";
|
||||
const buildUntouched = "asc " + entryPath + " -b build/untouched.wasm -t build/untouched.wat --sourceMap --validate --debug";
|
||||
const buildOptimized = "asc " + entryPath + " -b build/optimized.wasm -t build/optimized.wat --sourceMap --validate --optimize";
|
||||
const buildAll = "npm run asbuild:untouched && npm run asbuild:optimized";
|
||||
if (!fs.existsSync(packageFile)) {
|
||||
fs.writeFileSync(packageFile, JSON.stringify({
|
||||
|
Reference in New Issue
Block a user