cc_toolchain_actions.bzl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. """Useful sets of actions for defining `cc_toolchain_config` features."""
  5. load("@rules_cc//cc:action_names.bzl", "ACTION_NAMES")
  6. all_c_compile_actions = [
  7. ACTION_NAMES.c_compile,
  8. ACTION_NAMES.assemble,
  9. ACTION_NAMES.preprocess_assemble,
  10. ]
  11. all_cpp_compile_actions = [
  12. ACTION_NAMES.cpp_compile,
  13. ACTION_NAMES.linkstamp_compile,
  14. ACTION_NAMES.cpp_header_parsing,
  15. ACTION_NAMES.cpp_module_compile,
  16. ACTION_NAMES.cpp_module_codegen,
  17. ]
  18. all_compile_actions = all_c_compile_actions + all_cpp_compile_actions
  19. preprocessor_compile_actions = [
  20. ACTION_NAMES.c_compile,
  21. ACTION_NAMES.cpp_compile,
  22. ACTION_NAMES.linkstamp_compile,
  23. ACTION_NAMES.preprocess_assemble,
  24. ACTION_NAMES.cpp_header_parsing,
  25. ACTION_NAMES.cpp_module_compile,
  26. ]
  27. codegen_compile_actions = [
  28. ACTION_NAMES.c_compile,
  29. ACTION_NAMES.cpp_compile,
  30. ACTION_NAMES.linkstamp_compile,
  31. ACTION_NAMES.assemble,
  32. ACTION_NAMES.preprocess_assemble,
  33. ACTION_NAMES.cpp_module_codegen,
  34. ]
  35. all_link_actions = [
  36. ACTION_NAMES.cpp_link_executable,
  37. ACTION_NAMES.cpp_link_dynamic_library,
  38. ACTION_NAMES.cpp_link_nodeps_dynamic_library,
  39. ]