XLClang.cmake 620 B

12345678910111213141516171819202122
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__COMPILER_XLCLANG)
  5. return()
  6. endif()
  7. set(__COMPILER_XLCLANG 1)
  8. include(Compiler/XL)
  9. macro(__compiler_xlclang lang)
  10. __compiler_xl(${lang})
  11. # Feature flags.
  12. set(CMAKE_${lang}_VERBOSE_FLAG "-V")
  13. set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "-fPIC")
  14. set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIC")
  15. set(CMAKE_${lang}_RESPONSE_FILE_FLAG "@")
  16. set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "@")
  17. endmacro()