ya.make 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Generated by devtools/yamaker from nixpkgs 22.11.
  2. LIBRARY()
  3. LICENSE(
  4. Apache-2.0 AND
  5. Apache-2.0 WITH LLVM-exception AND
  6. MIT AND
  7. NCSA
  8. )
  9. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  10. VERSION(18.1.0-rc1)
  11. ORIGINAL_SOURCE(https://github.com/llvm/llvm-project/archive/llvmorg-18.1.0-rc1.tar.gz)
  12. DISABLE(USE_LTO)
  13. PEERDIR(
  14. library/cpp/sanitizer/include
  15. )
  16. ADDINCL(
  17. contrib/libs/libunwind/include
  18. )
  19. NO_RUNTIME()
  20. NO_UTIL()
  21. NO_SANITIZE()
  22. NO_SANITIZE_COVERAGE()
  23. CFLAGS(
  24. GLOBAL -D_libunwind_
  25. -fno-exceptions
  26. -fno-rtti
  27. -funwind-tables
  28. )
  29. IF (SANITIZER_TYPE == memory)
  30. CFLAGS(
  31. -fPIC
  32. )
  33. ENDIF()
  34. IF (NOT OS_EMSCRIPTEN)
  35. CFLAGS(
  36. -D_LIBUNWIND_IS_NATIVE_ONLY
  37. )
  38. SRCS(
  39. src/Unwind-EHABI.cpp
  40. src/Unwind-seh.cpp
  41. src/Unwind-sjlj.c
  42. src/Unwind-wasm.c
  43. src/UnwindLevel1-gcc-ext.c
  44. src/UnwindLevel1.c
  45. src/UnwindRegistersRestore.S
  46. src/UnwindRegistersSave.S
  47. src/libunwind.cpp
  48. )
  49. ELSEIF (OS_EMSCRIPTEN)
  50. PEERDIR(
  51. contrib/restricted/emscripten/include
  52. )
  53. CFLAGS(
  54. -D__USING_WASM_EXCEPTIONS__
  55. -D_LIBUNWIND_HIDE_SYMBOLS
  56. )
  57. SRCS(
  58. src/Unwind-wasm.c
  59. )
  60. ENDIF()
  61. END()