Newer
Older
dub_jkp / source / app.d
@Geod24 Geod24 on 20 Dec 2019 720 bytes Disable parallel marking within DUB
  1. /**
  2. Application entry point.
  3.  
  4. Copyright: © 2013 rejectedsoftware e.K.
  5. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
  6. Authors: Sönke Ludwig
  7. */
  8. module app;
  9.  
  10. import dub.commandline;
  11.  
  12. /**
  13. * Workaround https://github.com/dlang/dub/issues/1812
  14. *
  15. * On Linux, a segmentation fault happens when dub is compiled with a recent
  16. * compiler. While not confirmed, the logs seem to point to parallel marking
  17. * done by the GC. Hence this disables it.
  18. *
  19. * https://dlang.org/changelog/2.087.0.html#gc_parallel
  20. */
  21. static if (__VERSION__ >= 2087)
  22. extern(C) __gshared string[] rt_options = [ "gcopt=parallel:0" ];
  23.  
  24. int main(string[] args)
  25. {
  26. return runDubCommandLine(args);
  27. }