blob: e8326f04b810386198f3ab7806007f48d20fc4a2 [file] [log] [blame]
Chandler Carruth1f5d5c02012-04-04 22:12:04 +00001# CMake build for CompilerRT.
2#
3# This build assumes that CompilerRT is checked out into the
Jonas Hahnfeldddbab7d2016-08-19 06:46:00 +00004# 'projects/compiler-rt' or 'runtimes/compiler-rt' inside of an LLVM tree.
Alexey Samsonovde4ef2a2014-02-19 07:49:16 +00005# Standalone build system for CompilerRT is not yet ready.
Chandler Carruth1f5d5c02012-04-04 22:12:04 +00006#
7# An important constraint of the build is that it only produces libraries
8# based on the ability of the host toolchain to target various platforms.
9
Alexey Samsonovde4ef2a2014-02-19 07:49:16 +000010# Check if compiler-rt is built as a standalone project.
Jonas Hahnfeldddbab7d2016-08-19 06:46:00 +000011if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR COMPILER_RT_STANDALONE_BUILD)
Douglas Katzmanc4ffd482015-07-28 16:52:42 +000012 project(CompilerRT C CXX ASM)
Alexey Samsonovde4ef2a2014-02-19 07:49:16 +000013 set(COMPILER_RT_STANDALONE_BUILD TRUE)
Alexey Samsonovde4ef2a2014-02-19 07:49:16 +000014endif()
15
Chris Bieneman5c3112c2016-05-31 20:21:42 +000016cmake_minimum_required(VERSION 3.4.3)
Xinliang David Li2baff112016-06-02 20:33:33 +000017# FIXME:
18# The OLD behavior (pre 3.2) for this policy is to not set the value of the
19# CMAKE_EXE_LINKER_FLAGS variable in the generated test project. The NEW behavior
20# for this policy is to set the value of the CMAKE_EXE_LINKER_FLAGS variable
21# in the test project to the same as it is in the calling project. The new
22# behavior cause the compiler_rt test to fail during try_compile: see
23# projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake:121 such that
24# CAN_TARGET_${arch} is not set properly. This results in COMPILER_RT_SUPPORTED_ARCH
25# not being updated properly leading to poblems.
Chris Bienemanbae0eea2016-06-09 21:32:17 +000026cmake_policy(SET CMP0056 OLD)
NAKAMURA Takumi9cd9ad62014-02-26 06:45:11 +000027
Chris Bienemanc49e5e32016-05-09 21:45:52 +000028# Add path for custom compiler-rt modules.
29list(INSERT CMAKE_MODULE_PATH 0
30 "${CMAKE_CURRENT_SOURCE_DIR}/cmake"
31 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules"
32 )
33
34include(base-config-ix)
Jonas Hahnfeld9b2c3ab2016-08-02 05:51:05 +000035include(CompilerRTUtils)
Alexey Samsonov20abdf62013-10-01 12:52:15 +000036
Chris Bieneman679ab852015-09-14 19:59:24 +000037option(COMPILER_RT_BUILD_BUILTINS "Build builtins" ON)
38mark_as_advanced(COMPILER_RT_BUILD_BUILTINS)
39option(COMPILER_RT_BUILD_SANITIZERS "Build sanitizers" ON)
40mark_as_advanced(COMPILER_RT_BUILD_SANITIZERS)
Dean Michael Berris6af0a6b2016-08-08 03:58:57 +000041option(COMPILER_RT_BUILD_XRAY "Build xray" ON)
Dean Michael Berris938c5032016-07-21 07:39:55 +000042mark_as_advanced(COMPILER_RT_BUILD_XRAY)
Chris Bieneman679ab852015-09-14 19:59:24 +000043
Chris Bienemanc49e5e32016-05-09 21:45:52 +000044if (COMPILER_RT_STANDALONE_BUILD)
Jonas Hahnfeld9b2c3ab2016-08-02 05:51:05 +000045 load_llvm_config()
Alexey Samsonovaa980c72014-02-19 10:04:29 +000046
47 # Find Python interpreter.
48 set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5)
49 include(FindPythonInterp)
50 if(NOT PYTHONINTERP_FOUND)
51 message(FATAL_ERROR "
52 Unable to find Python interpreter required testing. Please install Python
53 or specify the PYTHON_EXECUTABLE CMake variable.")
54 endif()
55
56 # Define default arguments to lit.
57 set(LIT_ARGS_DEFAULT "-sv")
58 if (MSVC OR XCODE)
59 set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar")
60 endif()
61 set(LLVM_LIT_ARGS "${LIT_ARGS_DEFAULT}" CACHE STRING "Default options for lit")
Alexey Samsonovde4ef2a2014-02-19 07:49:16 +000062endif()
63
Jonas Hahnfeld9b2c3ab2016-08-02 05:51:05 +000064construct_compiler_rt_default_triple()
Chris Bieneman990ff382016-06-27 22:52:05 +000065if ("${COMPILER_RT_DEFAULT_TARGET_ABI}" STREQUAL "androideabi")
66 set(ANDROID 1)
67endif()
Alexey Samsonovca7fcf22012-12-19 12:33:39 +000068
69set(COMPILER_RT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
Alexey Samsonov6a65b182013-06-06 12:35:48 +000070set(COMPILER_RT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
Alexey Samsonovca7fcf22012-12-19 12:33:39 +000071
Timur Iskhodzhanovb9bd76b2014-05-13 14:25:49 +000072# We support running instrumented tests when we're not cross compiling
73# and target a UNIX-like system or Windows.
74# We can run tests on Android even when we are cross-compiling.
Reid Klecknerfbfed862015-07-17 16:23:05 +000075if(("${CMAKE_HOST_SYSTEM}" STREQUAL "${CMAKE_SYSTEM}" AND (UNIX OR WIN32)) OR ANDROID
Greg Fitzgerald07c88a12014-05-14 00:36:15 +000076 OR COMPILER_RT_EMULATOR)
Michael Gottesman4ddc2152013-04-01 04:13:03 +000077 option(COMPILER_RT_CAN_EXECUTE_TESTS "Can we execute instrumented tests" ON)
Alexey Samsonovc20f5d22012-12-27 13:19:23 +000078else()
Michael Gottesman4ddc2152013-04-01 04:13:03 +000079 option(COMPILER_RT_CAN_EXECUTE_TESTS "Can we execute instrumented tests" OFF)
Alexey Samsonovc20f5d22012-12-27 13:19:23 +000080endif()
Michael Gottesman4ddc2152013-04-01 04:13:03 +000081
Peter Collingbournecbdea322013-10-25 23:03:34 +000082option(COMPILER_RT_DEBUG "Build runtimes with full debug info" OFF)
Chris Bieneman69a372d2015-12-03 20:08:22 +000083option(COMPILER_RT_EXTERNALIZE_DEBUGINFO
84 "Generate dSYM files and strip executables and libraries (Darwin Only)" OFF)
Peter Collingbournecbdea322013-10-25 23:03:34 +000085# COMPILER_RT_DEBUG_PYBOOL is used by lit.common.configured.in.
86pythonize_bool(COMPILER_RT_DEBUG)
87
Vedant Kumarcb7110b2016-10-06 16:45:40 +000088include(config-ix)
89
Francis Ricci9cf5e4f2016-08-22 18:31:37 +000090if(APPLE AND SANITIZER_MIN_OSX_VERSION VERSION_LESS "10.9")
91 # Mac OS X prior to 10.9 had problems with exporting symbols from
92 # libc++/libc++abi.
93 set(use_cxxabi_default OFF)
94elseif(MSVC)
95 set(use_cxxabi_default OFF)
96else()
97 set(use_cxxabi_default ON)
98endif()
99
100option(SANITIZER_CAN_USE_CXXABI "Sanitizers can use cxxabi" ${use_cxxabi_default})
101pythonize_bool(SANITIZER_CAN_USE_CXXABI)
102
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000103#================================
104# Setup Compiler Flags
105#================================
Saleem Abdulrasoola7452e42015-01-14 15:55:17 +0000106
Alexey Samsonovfe7e28c2014-03-13 11:31:10 +0000107if(MSVC)
Reid Klecknerd0680ad2016-06-17 17:48:52 +0000108 # Override any existing /W flags with /W4. This is what LLVM does. Failing to
109 # remove other /W[0-4] flags will result in a warning about overriding a
110 # previous flag.
111 if (COMPILER_RT_HAS_W4_FLAG)
112 string(REGEX REPLACE " /W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
113 string(REGEX REPLACE " /W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
114 append_string_if(COMPILER_RT_HAS_W4_FLAG /W4 CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
115 endif()
Alexey Samsonovfe7e28c2014-03-13 11:31:10 +0000116else()
117 append_string_if(COMPILER_RT_HAS_WALL_FLAG -Wall CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
118endif()
Alexey Samsonov2f27f0b2014-02-24 11:22:39 +0000119if(COMPILER_RT_ENABLE_WERROR)
Alexey Samsonovfe7e28c2014-03-13 11:31:10 +0000120 append_string_if(COMPILER_RT_HAS_WERROR_FLAG -Werror CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
121 append_string_if(COMPILER_RT_HAS_WX_FLAG /WX CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
Alexey Samsonov2f27f0b2014-02-24 11:22:39 +0000122endif()
123
Alexey Samsonovbcce1972014-03-18 12:49:22 +0000124append_string_if(COMPILER_RT_HAS_STD_CXX11_FLAG -std=c++11 CMAKE_CXX_FLAGS)
125
Reid Kleckner0140ce42014-02-26 21:54:39 +0000126# Emulate C99 and C++11's __func__ for MSVC prior to 2013 CTP.
Alexey Samsonove3e2a112014-02-27 06:52:41 +0000127if(NOT COMPILER_RT_HAS_FUNC_SYMBOL)
Alexey Samsonov8c4c0972014-02-27 07:03:32 +0000128 add_definitions(-D__func__=__FUNCTION__)
Reid Kleckner0140ce42014-02-26 21:54:39 +0000129endif()
130
Chandler Carruthc1c9d582012-08-29 00:13:11 +0000131# Provide some common commmandline flags for Sanitizer runtimes.
Francis Ricci0b6f4872016-09-08 15:57:22 +0000132if(NOT WIN32)
133 append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC SANITIZER_COMMON_CFLAGS)
134endif()
Kuba Brecka14c0c592014-10-15 22:47:54 +0000135append_list_if(COMPILER_RT_HAS_FNO_BUILTIN_FLAG -fno-builtin SANITIZER_COMMON_CFLAGS)
136append_list_if(COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG -fno-exceptions SANITIZER_COMMON_CFLAGS)
Kuba Brecka83460cf2016-05-22 19:59:06 +0000137if(NOT COMPILER_RT_DEBUG)
138 append_list_if(COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG -fomit-frame-pointer SANITIZER_COMMON_CFLAGS)
139endif()
Kuba Brecka14c0c592014-10-15 22:47:54 +0000140append_list_if(COMPILER_RT_HAS_FUNWIND_TABLES_FLAG -funwind-tables SANITIZER_COMMON_CFLAGS)
141append_list_if(COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG -fno-stack-protector SANITIZER_COMMON_CFLAGS)
Peter Collingbourneb64d0b12015-06-15 21:08:47 +0000142append_list_if(COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG -fno-sanitize=safe-stack SANITIZER_COMMON_CFLAGS)
Kuba Brecka14c0c592014-10-15 22:47:54 +0000143append_list_if(COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG -fvisibility=hidden SANITIZER_COMMON_CFLAGS)
Chris Bieneman9586a382015-11-30 19:16:42 +0000144append_list_if(COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG -fvisibility-inlines-hidden SANITIZER_COMMON_CFLAGS)
Kuba Brecka14c0c592014-10-15 22:47:54 +0000145append_list_if(COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG -fno-function-sections SANITIZER_COMMON_CFLAGS)
Evgeniy Stepanov8c9a0702015-01-15 16:31:22 +0000146append_list_if(COMPILER_RT_HAS_FNO_LTO_FLAG -fno-lto SANITIZER_COMMON_CFLAGS)
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000147
Alexey Samsonov6c282b42014-02-28 08:04:30 +0000148if(MSVC)
Peter Collingbourne702548d2015-07-08 22:10:34 +0000149 # Replace the /M[DT][d] flags with /MT, and strip any definitions of _DEBUG,
150 # which cause definition mismatches at link time.
Timur Iskhodzhanovde1718d2014-08-12 09:44:56 +0000151 # FIXME: In fact, sanitizers should support both /MT and /MD, see PR20214.
Alexey Samsonov6c282b42014-02-28 08:04:30 +0000152 if(COMPILER_RT_HAS_MT_FLAG)
Aaron Ballman7c7be2f2014-10-23 20:24:00 +0000153 foreach(flag_var
Andrey Turetskiybc0122b2016-02-20 12:56:04 +0000154 CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
155 CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
Aaron Ballman7c7be2f2014-10-23 20:24:00 +0000156 CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
157 CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
Peter Collingbourne702548d2015-07-08 22:10:34 +0000158 string(REGEX REPLACE "/M[DT]d" "/MT" ${flag_var} "${${flag_var}}")
159 string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
160 string(REGEX REPLACE "/D_DEBUG" "" ${flag_var} "${${flag_var}}")
Aaron Ballman7c7be2f2014-10-23 20:24:00 +0000161 endforeach()
Alexey Samsonov6c282b42014-02-28 08:04:30 +0000162 endif()
Kuba Brecka14c0c592014-10-15 22:47:54 +0000163 append_list_if(COMPILER_RT_HAS_Oy_FLAG /Oy- SANITIZER_COMMON_CFLAGS)
164 append_list_if(COMPILER_RT_HAS_GS_FLAG /GS- SANITIZER_COMMON_CFLAGS)
Reid Kleckner21aca482016-03-21 20:08:59 +0000165 # VS 2015 (version 1900) added support for thread safe static initialization.
166 # However, ASan interceptors run before CRT initialization, which causes the
167 # new thread safe code to crash. Disable this feature for now.
Reid Klecknerf6d54752016-07-21 20:03:37 +0000168 if (MSVC_VERSION GREATER 1899 OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
Reid Kleckner21aca482016-03-21 20:08:59 +0000169 list(APPEND SANITIZER_COMMON_CFLAGS /Zc:threadSafeInit-)
170 endif()
Alexey Samsonov6c282b42014-02-28 08:04:30 +0000171endif()
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000172
Alexey Samsonovea040322015-01-06 20:25:34 +0000173append_list_if(COMPILER_RT_DEBUG -DSANITIZER_DEBUG=1 SANITIZER_COMMON_CFLAGS)
Alexey Samsonovdf3aeb82015-01-03 04:29:12 +0000174
Alexey Samsonovcbc68522014-03-13 13:37:07 +0000175# Build with optimization, unless we're in debug mode. If we're using MSVC,
176# always respect the optimization flags set by CMAKE_BUILD_TYPE instead.
177if(NOT COMPILER_RT_DEBUG AND NOT MSVC)
178 list(APPEND SANITIZER_COMMON_CFLAGS -O3)
Hans Wennborg67c6e502013-08-27 01:24:01 +0000179endif()
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000180
Alexey Samsonovdf3aeb82015-01-03 04:29:12 +0000181# Determine if we should restrict stack frame sizes.
Dmitry Vyukov4bf08942015-04-10 09:45:22 +0000182# Stack frames on PowerPC and Mips and in debug biuld can be much larger than
Alexey Samsonovdf3aeb82015-01-03 04:29:12 +0000183# anticipated.
184# FIXME: Fix all sanitizers and add -Wframe-larger-than to
185# SANITIZER_COMMON_FLAGS
186if(COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG AND NOT COMPILER_RT_DEBUG
Alexey Samsonov63eaeca2015-09-08 23:13:47 +0000187 AND NOT ${COMPILER_RT_DEFAULT_TARGET_ARCH} MATCHES "powerpc|mips")
Alexey Samsonovdf3aeb82015-01-03 04:29:12 +0000188 set(SANITIZER_LIMIT_FRAME_SIZE TRUE)
189else()
190 set(SANITIZER_LIMIT_FRAME_SIZE FALSE)
191endif()
192
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000193# Build sanitizer runtimes with debug info.
Kuba Brecka5238deb2014-12-23 01:52:53 +0000194if(COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG AND NOT COMPILER_RT_DEBUG)
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000195 list(APPEND SANITIZER_COMMON_CFLAGS -gline-tables-only)
196elseif(COMPILER_RT_HAS_G_FLAG)
197 list(APPEND SANITIZER_COMMON_CFLAGS -g)
Reid Kleckner1734b972016-08-02 01:02:46 +0000198elseif(MSVC)
199 # Use /Z7 instead of /Zi for the asan runtime. This avoids the LNK4099
200 # warning from the MS linker complaining that it can't find the 'vc140.pdb'
201 # file used by our object library compilations.
202 list(APPEND SANITIZER_COMMON_CFLAGS /Z7)
203 llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/Z[i7I]" "/Z7")
204 llvm_replace_compiler_option(CMAKE_CXX_FLAGS_DEBUG "/Z[i7I]" "/Z7")
205 llvm_replace_compiler_option(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Z[i7I]" "/Z7")
Alexey Samsonov75fb6772012-11-08 14:49:28 +0000206endif()
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000207
Kuba Breckaab61c742016-10-08 09:01:27 +0000208if(LLVM_ENABLE_MODULES)
209 # Sanitizers cannot be built with -fmodules. The interceptors intentionally
210 # don't include system headers, which is incompatible with modules.
211 list(APPEND SANITIZER_COMMON_CFLAGS -fno-modules)
212endif()
213
Alexey Samsonov9a1ffce2014-02-18 07:26:58 +0000214# Turn off several warnings.
Alexey Samsonov829da452014-11-13 21:19:53 +0000215append_list_if(COMPILER_RT_HAS_WGNU_FLAG -Wno-gnu SANITIZER_COMMON_CFLAGS)
216append_list_if(COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG -Wno-variadic-macros SANITIZER_COMMON_CFLAGS)
217append_list_if(COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG -Wno-c99-extensions SANITIZER_COMMON_CFLAGS)
218append_list_if(COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG -Wno-non-virtual-dtor SANITIZER_COMMON_CFLAGS)
Aaron Ballman1d1f2322014-10-23 20:39:58 +0000219append_list_if(COMPILER_RT_HAS_WD4146_FLAG /wd4146 SANITIZER_COMMON_CFLAGS)
220append_list_if(COMPILER_RT_HAS_WD4291_FLAG /wd4291 SANITIZER_COMMON_CFLAGS)
Kuba Brecka14c0c592014-10-15 22:47:54 +0000221append_list_if(COMPILER_RT_HAS_WD4391_FLAG /wd4391 SANITIZER_COMMON_CFLAGS)
222append_list_if(COMPILER_RT_HAS_WD4722_FLAG /wd4722 SANITIZER_COMMON_CFLAGS)
Aaron Ballman1d1f2322014-10-23 20:39:58 +0000223append_list_if(COMPILER_RT_HAS_WD4800_FLAG /wd4800 SANITIZER_COMMON_CFLAGS)
Chandler Carruthc1c9d582012-08-29 00:13:11 +0000224
Reid Kleckner44e6e362016-06-17 18:30:37 +0000225# Warnings to turn off for all libraries, not just sanitizers.
226append_string_if(COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG -Wno-unused-parameter CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
227
Bob Haarmanf51b0d52017-01-04 21:40:00 +0000228if (CMAKE_LINKER MATCHES "link.exe$")
229 # Silence MSVC linker warnings caused by empty object files. The
230 # sanitizer libraries intentionally use ifdefs that result in empty
231 # files, rather than skipping these files in the build system.
232 # Ideally, we would pass this flag only for the libraries that need
233 # it, but CMake doesn't seem to have a way to set linker flags for
234 # individual static libraries, so we enable the suppression flag for
235 # the whole compiler-rt project.
236 append("/IGNORE:4221" CMAKE_STATIC_LINKER_FLAGS)
237endif()
238
Alexey Samsonov9f3938e2013-04-11 15:49:52 +0000239add_subdirectory(include)
240
Reid Klecknerb5093182015-08-11 17:22:06 +0000241set(COMPILER_RT_LIBCXX_PATH ${LLVM_MAIN_SRC_DIR}/projects/libcxx)
Alexey Samsonov8434e602014-02-14 13:02:58 +0000242if(EXISTS ${COMPILER_RT_LIBCXX_PATH}/)
243 set(COMPILER_RT_HAS_LIBCXX_SOURCES TRUE)
244else()
245 set(COMPILER_RT_HAS_LIBCXX_SOURCES FALSE)
246endif()
247
Reid Klecknerc1cd8dd2015-08-11 18:43:13 +0000248set(COMPILER_RT_LLD_PATH ${LLVM_MAIN_SRC_DIR}/tools/lld)
Reid Kleckner45ebaf12015-08-11 00:33:07 +0000249if(EXISTS ${COMPILER_RT_LLD_PATH}/)
250 set(COMPILER_RT_HAS_LLD_SOURCES TRUE)
251else()
252 set(COMPILER_RT_HAS_LLD_SOURCES FALSE)
253endif()
254pythonize_bool(COMPILER_RT_HAS_LLD_SOURCES)
255
Chandler Carruth1f5d5c02012-04-04 22:12:04 +0000256add_subdirectory(lib)
257
Alexey Samsonovcd8535a2014-02-19 11:18:47 +0000258if(COMPILER_RT_INCLUDE_TESTS)
Alexey Samsonov81a2b462014-02-14 11:00:07 +0000259 add_subdirectory(unittests)
Chris Bienemanfb92d9a2015-09-14 19:54:12 +0000260 add_subdirectory(test)
Chandler Carruth1f5d5c02012-04-04 22:12:04 +0000261endif()