Skip to content

Commit 76448be

Browse files
committed
Rename LLVM_EXECUTE_ONLY_CODE to RUNTIMES_EXECUTE_ONLY_CODE
1 parent 4a5c345 commit 76448be

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
@@ -214,14 +214,14 @@ endif()
214214
option(LLVM_INCLUDE_TESTS "Generate build targets for the runtimes unit tests." ON)
215215
option(LLVM_INCLUDE_DOCS "Generate build targets for the runtimes documentation." ON)
216216
option(LLVM_ENABLE_SPHINX "Use Sphinx to generate the runtimes documentation." OFF)
217-
option(LLVM_EXECUTE_ONLY_CODE "Compile runtime libraries as execute-only." OFF)
217+
option(RUNTIMES_EXECUTE_ONLY_CODE "Compile runtime libraries as execute-only." OFF)
218218

219-
if (LLVM_EXECUTE_ONLY_CODE)
219+
if (RUNTIMES_EXECUTE_ONLY_CODE)
220220
# If a target doesn't support or recognise -mexecute-only, Clang will simply ignore the flag.
221221
# We can check for this case using -Werror=unused-command-line-argument.
222222
check_c_compiler_flag("-mexecute-only -Werror=unused-command-line-argument" C_SUPPORTS_MEXECUTE_ONLY)
223223
if (NOT C_SUPPORTS_MEXECUTE_ONLY)
224-
message(FATAL_ERROR "LLVM_EXECUTE_ONLY_CODE was turned on, but the target '${LLVM_TARGET_TRIPLE}'"
224+
message(FATAL_ERROR "RUNTIMES_EXECUTE_ONLY_CODE was turned on, but the target '${LLVM_TARGET_TRIPLE}'"
225225
" doesn't support the -mexecute-only flag")
226226
endif()
227227

0 commit comments

Comments
 (0)