Kode / khamake

Kha's build tool.
http://kha.tech
15 stars 45 forks source link

Should return non-success error code on compilation failure #257

Closed anissen closed 2 years ago

anissen commented 2 years ago

Only returning a successful error code on a success compilation will make it easier to chain together scripts.

For example, running this:

node Kha/make --debug --compile --graphics metal --quiet && echo "Success!"

Will result in this output:

** BUILD FAILED **

The following build commands failed:
    CompileC /Users/anders/projects/cosy-breakout/build/osx-build/build/Crafty.build/Debug/Crafty.build/Objects-normal/arm64/VorbisDecodeState.o /Users/anders/projects/cosy-breakout/build/osx-build/Sources/src/kha/audio2/ogg/vorbis/VorbisDecodeState.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Crafty' from project 'Crafty')
(1 failure)
Compilation failed.
undefined
Success!