Lines Matching +full:- +full:d_has_exceptions
1 # -*- Python -*-
32 # Platform-specific default ASAN_OPTIONS for lit tests.
51 libdl_flag = "-ldl"
55 # GCC-ASan doesn't link in all the necessary libraries automatically, so
58 extra_linkflags = ["-pthread", "-lstdc++", libdl_flag]
62 # BFD linker in 64-bit android toolchains fails to find libm.so, which is a
65 extra_linkflags += ["-lm"]
67 # Setup default compiler flags used with -fsanitize=address option.
71 clang_asan_static_cflags = (["-fsanitize=address",
72 "-mno-omit-leaf-frame-pointer",
73 "-fno-omit-frame-pointer",
74 "-fno-optimize-sibling-calls"] +
77 clang_asan_static_cflags.append("-mbackchain")
81 clang_asan_cflags = clang_asan_static_cflags + ['-shared-libasan']
82 clang_asan_cxxflags = clang_asan_static_cxxflags + ['-shared-libasan']
83 config.available_features.add("asan-dynamic-runtime")
87 config.available_features.add("asan-static-runtime")
95 config.available_features.add('not-android')
105 config.substitutions.append( ("%shared_libasan", "libclang_rt.asan-%s.so" % config.target_arch))
110 # Windows-specific tests might also use the clang-cl.exe driver.
112 clang_cl_asan_cxxflags = ["-fsanitize=address",
113 "-Wno-deprecated-declarations",
114 "-WX",
115 "-D_HAS_EXCEPTIONS=0",
116 "-Zi"] + target_cflags
118 clang_cl_asan_cxxflags.append("-MD")
120 clang_cl_invocation = clang_invocation.replace("clang.exe","clang-cl.exe")
122 base_lib = os.path.join(config.compiler_rt_libdir, "clang_rt.asan%%s-%s.lib" % config.target_arch)
127 # FIXME: De-hardcode this path.
146 if config.host_arch.find('64') != -1 and config.android != "1":
151 config.substitutions.append( ('CHECK-%kernel_bits', ("CHECK-kernel-" + kernel_bits + "-bits")))
155 config.available_features.add("asan-" + config.bits + "-bits")
158 config.substitutions.append( ("%ld_flags_rpath_exe", '-Wl,-rpath,@executable_path/ %dynamiclib') )
159 …config.substitutions.append( ("%ld_flags_rpath_so", '-install_name @rpath/`basename %dynamiclib`')…
161 …config.substitutions.append( ("%ld_flags_rpath_exe", "-Wl,-z,origin -Wl,-rpath,\$ORIGIN -L%T -l%xd…
164 …config.substitutions.append( ("%ld_flags_rpath_exe", "-Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_name…
171 # Allow tests to use REQUIRES=stable-runtime. For use when you cannot use XFAIL
174 config.available_features.add('stable-runtime')
176 # Turn on leak detection on 64-bit Linux.
178 config.available_features.add('leak-detection')
183 # GCC-ASan uses dynamic runtime by default.