TestCaller.DsrProj 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. # Use C++ 2014.
  2. CompilerFlag "-std=c++14"
  3. # Use all locally available SIMD extensions.
  4. CompilerFlag "-march=native"
  5. Debug = 1
  6. Supressed = 1
  7. Graphics = 0
  8. Sound = 0
  9. # Turning off optimization will cause AVX2 to crash in GNU's g++!
  10. # Because there is no way to create a U32x8 vector without getting an unaligned __m256i temp
  11. # generated and moved by the broken compiler and they have refused to fix the bug since 2009.
  12. #Optimization = 0
  13. Import "../DFPSR/DFPSR.DsrHead"
  14. # Compile and run each source file ending with Test.cpp in tests as its own project.
  15. # All settings are inherited from the caller when using source files as projects.
  16. Projects from "*Test.cpp" in "tests"
  17. # TODO:
  18. # * Allow creating scopes for temporary settings, so that a stack keeps track of which
  19. # settings were local to the scope and should be erased when leaving the scope.
  20. # * Or just make a method for clearing all local settings while keeping external settings such as target platform.
  21. # TestCaller needs to be called with specific arguments, so we keep supressing automatic execution for more control.
  22. # Enable to run faster by skipping compilation of testCaller when it already exists.
  23. #SkipIfBinaryExists
  24. # Compile the program that will run all the tests
  25. Crawl "testCaller.cpp"