mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	CMake: Detect dotty.
Patch by Arnaud Allard de Grandmaison! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -126,6 +126,15 @@ endif() | |||||||
| check_type_exists(uint64_t "${headers}" HAVE_UINT64_T) | check_type_exists(uint64_t "${headers}" HAVE_UINT64_T) | ||||||
| check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T) | check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T) | ||||||
|  |  | ||||||
|  | # available programs checks | ||||||
|  | find_program(DOTTY_EXECUTABLE dotty) | ||||||
|  | if(DOTTY_EXECUTABLE) | ||||||
|  |   set(HAVE_DOTTY 1) | ||||||
|  |   set(LLVM_PATH_DOTTY ${DOTTY_EXECUTABLE}) | ||||||
|  |   mark_as_advanced(HAVE_DOTTY) | ||||||
|  |   mark_as_advanced(LLVM_PATH_DOTTY) | ||||||
|  | endif() | ||||||
|  |  | ||||||
| # Define LLVM_MULTITHREADED if gcc atomic builtins exists. | # Define LLVM_MULTITHREADED if gcc atomic builtins exists. | ||||||
| include(CheckAtomic) | include(CheckAtomic) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -80,7 +80,7 @@ | |||||||
| #undef HAVE_DOT | #undef HAVE_DOT | ||||||
|  |  | ||||||
| /* Define if the dotty program is available */ | /* Define if the dotty program is available */ | ||||||
| #undef HAVE_DOTTY | #cmakedefine HAVE_DOTTY ${HAVE_DOTTY} | ||||||
|  |  | ||||||
| /* Define if you have the _dyld_func_lookup function. */ | /* Define if you have the _dyld_func_lookup function. */ | ||||||
| #undef HAVE_DYLD | #undef HAVE_DYLD | ||||||
| @@ -471,7 +471,7 @@ | |||||||
| #undef LLVM_PATH_DOT | #undef LLVM_PATH_DOT | ||||||
|  |  | ||||||
| /* Define to path to dotty program if found or 'echo dotty' otherwise */ | /* Define to path to dotty program if found or 'echo dotty' otherwise */ | ||||||
| #undef LLVM_PATH_DOTTY | #cmakedefine LLVM_PATH_DOTTY "${LLVM_PATH_DOTTY}" | ||||||
|  |  | ||||||
| /* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */ | /* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */ | ||||||
| #undef LLVM_PATH_GRAPHVIZ | #undef LLVM_PATH_GRAPHVIZ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user