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.

28 line
682B

  1. {
  2. "$schema": "../res/toolchain-schema.json",
  3. "compiler_id": "gnu",
  4. "c_compiler": "gcc-9",
  5. "cxx_compiler": "g++-9",
  6. "warning_flags": [
  7. "-Werror",
  8. ],
  9. "flags": [
  10. "-fdata-sections",
  11. "-ffunction-sections",
  12. "-Os"
  13. ],
  14. "cxx_flags": [
  15. "-fconcepts",
  16. "-std=c++2a"
  17. ],
  18. "link_flags": [
  19. "-static",
  20. "-l:libssl.a",
  21. "-l:libcrypto.a",
  22. "-ldl",
  23. // WORKAROUND: https://sourceware.org/legacy-ml/glibc-bugs/2018-09/msg00009.html
  24. "-Wl,-u,pthread_mutex_lock,-u,pthread_mutex_unlock,-u,pthread_self",
  25. "-Wl,--gc-sections,--strip-all"
  26. ],
  27. "optimize": true
  28. }