🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. exe = "tester"
  2. # "gnu" or "clang"
  3. toolchain = "gnu"
  4. # optional
  5. link_pool_depth = 1
  6. # optional
  7. builddir = {
  8. "gnu" : "build"
  9. , "msvc" : "build"
  10. , "clang" : "build"
  11. }
  12. includes = {
  13. "gnu" : [ "-I." ]
  14. , "msvc" : [ "/I." ]
  15. , "clang" : [ "-I." ]
  16. }
  17. defines = {
  18. "gnu" : [ ]
  19. , "msvc" : [ ]
  20. , "clang" : [ ]
  21. }
  22. cflags = {
  23. "gnu" : [ "-O2", "-g" ]
  24. , "msvc" : [ "/O2" ]
  25. , "clang" : [ "-O2", "-g" ]
  26. }
  27. # Warn as much as possible: http://qiita.com/MitsutakaTakeda/items/6b9966f890cc9b944d75
  28. cxxflags = {
  29. "gnu" : [ "-O2", "-g", "-pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror -Wno-unused", "-fsanitize=address" ]
  30. , "msvc" : [ "/O2", "/W4" ]
  31. , "clang" : [ "-O2", "-g", "-Werror -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic", "-fsanitize=address" ]
  32. }
  33. ldflags = {
  34. "gnu" : [ "-fsanitize=address" ]
  35. , "msvc" : [ ]
  36. , "clang" : [ "-fsanitize=address" ]
  37. }
  38. cxx_files = [ "tester.cc" ]
  39. c_files = [ ]
  40. # You can register your own toolchain through register_toolchain function
  41. def register_toolchain(ninja):
  42. pass