Skip to content

Commit c9e9a25

Browse files
committed
Rename LLVM_EXECUTE_ONLY_CODE to RUNTIMES_EXECUTE_ONLY_CODE
1 parent 1858fd5 commit c9e9a25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtimes/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ endif()
233233
option(LLVM_INCLUDE_TESTS "Generate build targets for the runtimes unit tests." ON)
234234
option(LLVM_INCLUDE_DOCS "Generate build targets for the runtimes documentation." ON)
235235
option(LLVM_ENABLE_SPHINX "Use Sphinx to generate the runtimes documentation." OFF)
236-
option(LLVM_EXECUTE_ONLY_CODE "Compile runtime libraries as execute-only." OFF)
236+
option(RUNTIMES_EXECUTE_ONLY_CODE "Compile runtime libraries as execute-only." OFF)
237237

238-
if (LLVM_EXECUTE_ONLY_CODE)
238+
if (RUNTIMES_EXECUTE_ONLY_CODE)
239239
# If a target doesn't support or recognise -mexecute-only, Clang will simply ignore the flag.
240240
# We can check for this case using -Werror=unused-command-line-argument.
241241
check_c_compiler_flag("-mexecute-only -Werror=unused-command-line-argument" C_SUPPORTS_MEXECUTE_ONLY)
242242
if (NOT C_SUPPORTS_MEXECUTE_ONLY)
243-
message(FATAL_ERROR "LLVM_EXECUTE_ONLY_CODE was turned on, but the target '${LLVM_TARGET_TRIPLE}'"
243+
message(FATAL_ERROR "RUNTIMES_EXECUTE_ONLY_CODE was turned on, but the target '${LLVM_TARGET_TRIPLE}'"
244244
" doesn't support the -mexecute-only flag")
245245
endif()
246246

0 commit comments

Comments
 (0)