[InstCombine] Signed saturation patterns
[llvm-complete.git] / utils / gn / secondary / clang / tools / c-index-test / BUILD.gn
blobc168b6dc9cb39158ebfeef80d7efd7c686ab2c0e
1 executable("c-index-test") {
2   configs += [ "//llvm/utils/gn/build:clang_code" ]
3   deps = [
4     "//clang/include/clang/Config",
5     "//clang/lib/AST",
6     "//clang/lib/Basic",
7     "//clang/lib/CodeGen",
8     "//clang/lib/Frontend",
9     "//clang/lib/Index",
10     "//clang/lib/Serialization",
11     "//clang/tools/libclang",
12     "//llvm/lib/Support",
13     "//llvm/utils/gn/build/libs/xml",
14   ]
15   if (host_os != "win") {
16     cflags_c = [ "-std=gnu89" ]
17   }
18   sources = [
19     "c-index-test.c",
20     "core_main.cpp",
21   ]
23   # See comment at top of clang/tools/libclang/BUILD.gn for why this isn't
24   # needed on Linux.
25   if (host_os == "mac") {
26     ldflags = [ "-Wl,-rpath,@loader_path/../lib" ]
27   }