Closed faustinoaq closed 7 years ago
@greyblake Why Is Travis failing?
I think that some ms faster is good for an interactive console like ICR. :sweat_smile:
@veelenga @hugoabonizio @greyblake ping :sweat_smile:
LGTM :)
I think we can merge this. I will try to fix Travis build in a separate PR.
Same error here. The process hangs on 100% CPU and then dies. Probably related to crystal-lang/crystal#4719.
$ crystal --version
Crystal 0.23.1 [e2a1389] (2017-07-13) LLVM 3.8.1
$ make test
/usr/bin/crystal build --release -o bin/icr src/icr/cli.cr
crystal: /var/cache/omnibus/src/llvm/llvm-3.8.1.src/lib/CodeGen/LexicalScopes.cpp:160: llvm::LexicalScope* llvm::LexicalScopes::getOrCreateRegularScope(const llvm::DILocalScope*): Assertion `cast<DISubprogram>(Scope)->describes(MF->getFunction())' failed.
/usr/bin/crystal: linha 102: 4359 Abortado (imagem do núcleo gravada) "$INSTALL_DIR/embedded/bin/crystal" "$@"
Makefile:6: recipe for target 'build' failed
make: *** [build] Error 134
You need to add --no-debug
flag to make build
too.
build:
- $(CRYSTAL_BIN) build --release -o bin/icr src/icr/cli.cr $(CRFLAGS)
+ $(CRYSTAL_BIN) build --release --no-debug -o bin/icr src/icr/cli.cr $(CRFLAGS)
You need to add --no-debug flag to make build too.
Done :+1:
@faustinoaq thank you! :smile:
I am here. Looks like you solved it. Nice job! :+1:
Avoiding debugging info with
--no-debug
flag, improves compilation speed.Is about 200 ms faster with
--no-debug
flag