alvatar / sphere-fusion

Multiplatform support and project generator for SchemeSpheres / Gambit
zlib License
5 stars 2 forks source link

ndk-build parallel compilation flag causes issues on SDL build #8

Closed fjvallarino closed 10 years ago

fjvallarino commented 10 years ago

On fusion/fusion.scm:237, the following command is issued:

(unless (zero? (shell-command (string-append (android-ndk-build-path) " -j -C " (android-directory) " &>ndk-log")))

The parallel compilation flag ("-j") causes non-deterministic issues when building SDL, randomly failing on SDL_Log, SDL_Surface, etc. When that flag is removed, the process runs on background and finishes building SDL after the rest of the build has finished (the resulting APK is not usable).

The following expression works on my environment, but disables parallel compilation and does not generate an error file (it relies on standard output):

(shell-command (string-append (android-ndk-build-path) " -C " (android-directory)))

fjvallarino commented 10 years ago

Fixed in https://github.com/alvatar/sphere-fusion/commit/e1fd7c38bcb838801fb765a763780aa0a491b14c