ya.make 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. Intel-LLVM-SGA AND
  7. MIT AND
  8. NCSA
  9. )
  10. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  11. VERSION(15.0.7)
  12. ORIGINAL_SOURCE(https://github.com/llvm/llvm-project/archive/llvmorg-15.0.7.tar.gz)
  13. ADDINCL(
  14. GLOBAL contrib/libs/cxxsupp/openmp
  15. )
  16. NO_COMPILER_WARNINGS()
  17. NO_UTIL()
  18. NO_LTO()
  19. CFLAGS(
  20. -fno-exceptions
  21. -DKMP_USE_MONITOR=1
  22. )
  23. IF (SANITIZER_TYPE == thread)
  24. NO_SANITIZE()
  25. CFLAGS(
  26. -fPIC
  27. )
  28. ENDIF()
  29. IF (SANITIZER_TYPE == memory)
  30. NO_SANITIZE()
  31. CFLAGS(
  32. -fPIC
  33. )
  34. ENDIF()
  35. # The KMP_DEBUG define enables OpenMP debugging support, including tracing (controlled by environment variables)
  36. # and debug asserts. The upstream version unconditionally enables KMP_DEBUG for Debug/RelWithDebInfo builds.
  37. # Instead, we make this opt-in via a `ymake` variable to avoid accidentally releasing a relwithdebinfo binary
  38. # with KMP_DEBUG enabled. Note that the `ymake` variable is called OPENMP_DEBUG for clarity, since no one
  39. # really knows what KMP is.
  40. IF (OPENMP_DEBUG)
  41. CFLAGS(
  42. -DKMP_DEBUG=1
  43. )
  44. ENDIF()
  45. SRCS(
  46. kmp_affinity.cpp
  47. kmp_alloc.cpp
  48. kmp_atomic.cpp
  49. kmp_barrier.cpp
  50. kmp_cancel.cpp
  51. kmp_csupport.cpp
  52. kmp_debug.cpp
  53. kmp_dispatch.cpp
  54. kmp_environment.cpp
  55. kmp_error.cpp
  56. kmp_ftn_cdecl.cpp
  57. kmp_ftn_extra.cpp
  58. kmp_global.cpp
  59. kmp_gsupport.cpp
  60. kmp_i18n.cpp
  61. kmp_io.cpp
  62. kmp_itt.cpp
  63. kmp_lock.cpp
  64. kmp_runtime.cpp
  65. kmp_sched.cpp
  66. kmp_settings.cpp
  67. kmp_str.cpp
  68. kmp_taskdeps.cpp
  69. kmp_tasking.cpp
  70. kmp_threadprivate.cpp
  71. kmp_utility.cpp
  72. kmp_version.cpp
  73. kmp_wait_release.cpp
  74. ompt-general.cpp
  75. z_Linux_asm.S
  76. z_Linux_util.cpp
  77. )
  78. END()