annotate clang/lib/Basic/CMakeLists.txt @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 79ff65ed7e25
children 5f20bc1ed4ff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 set(LLVM_LINK_COMPONENTS
anatofuz
parents:
diff changeset
2 Support
anatofuz
parents:
diff changeset
3 )
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
anatofuz
parents:
diff changeset
6 find_first_existing_vc_file("${CLANG_SOURCE_DIR}" clang_vc)
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 # The VC revision include that we want to generate.
anatofuz
parents:
diff changeset
9 set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/VCSVersion.inc")
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 set(generate_vcs_version_script "${LLVM_CMAKE_PATH}/GenerateVersionFromVCS.cmake")
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 if(llvm_vc AND LLVM_APPEND_VC_REV)
anatofuz
parents:
diff changeset
14 set(llvm_source_dir ${LLVM_MAIN_SRC_DIR})
anatofuz
parents:
diff changeset
15 endif()
anatofuz
parents:
diff changeset
16 if(clang_vc AND LLVM_APPEND_VC_REV)
anatofuz
parents:
diff changeset
17 set(clang_source_dir ${CLANG_SOURCE_DIR})
anatofuz
parents:
diff changeset
18 endif()
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 # Create custom target to generate the VC revision include.
anatofuz
parents:
diff changeset
21 add_custom_command(OUTPUT "${version_inc}"
anatofuz
parents:
diff changeset
22 DEPENDS "${llvm_vc}" "${clang_vc}" "${generate_vcs_version_script}"
anatofuz
parents:
diff changeset
23 COMMAND ${CMAKE_COMMAND} "-DNAMES=\"LLVM;CLANG\""
anatofuz
parents:
diff changeset
24 "-DLLVM_SOURCE_DIR=${llvm_source_dir}"
anatofuz
parents:
diff changeset
25 "-DCLANG_SOURCE_DIR=${clang_source_dir}"
anatofuz
parents:
diff changeset
26 "-DHEADER_FILE=${version_inc}"
anatofuz
parents:
diff changeset
27 -P "${generate_vcs_version_script}")
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 # Mark the generated header as being generated.
anatofuz
parents:
diff changeset
30 set_source_files_properties("${version_inc}"
anatofuz
parents:
diff changeset
31 PROPERTIES GENERATED TRUE
anatofuz
parents:
diff changeset
32 HEADER_FILE_ONLY TRUE)
anatofuz
parents:
diff changeset
33
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
34 if(CLANG_VENDOR)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
35 set_source_files_properties(Version.cpp
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
36 PROPERTIES COMPILE_DEFINITIONS "CLANG_VENDOR=\"${CLANG_VENDOR} \"")
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
37 endif()
150
anatofuz
parents:
diff changeset
38
anatofuz
parents:
diff changeset
39 add_clang_library(clangBasic
anatofuz
parents:
diff changeset
40 Attributes.cpp
anatofuz
parents:
diff changeset
41 Builtins.cpp
anatofuz
parents:
diff changeset
42 CharInfo.cpp
anatofuz
parents:
diff changeset
43 CodeGenOptions.cpp
anatofuz
parents:
diff changeset
44 Cuda.cpp
anatofuz
parents:
diff changeset
45 Diagnostic.cpp
anatofuz
parents:
diff changeset
46 DiagnosticIDs.cpp
anatofuz
parents:
diff changeset
47 DiagnosticOptions.cpp
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
48 ExpressionTraits.cpp
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
49 FileEntry.cpp
150
anatofuz
parents:
diff changeset
50 FileManager.cpp
anatofuz
parents:
diff changeset
51 FileSystemStatCache.cpp
anatofuz
parents:
diff changeset
52 IdentifierTable.cpp
anatofuz
parents:
diff changeset
53 LangOptions.cpp
anatofuz
parents:
diff changeset
54 LangStandards.cpp
anatofuz
parents:
diff changeset
55 Module.cpp
anatofuz
parents:
diff changeset
56 ObjCRuntime.cpp
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
57 OpenCLOptions.cpp
150
anatofuz
parents:
diff changeset
58 OpenMPKinds.cpp
anatofuz
parents:
diff changeset
59 OperatorPrecedence.cpp
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
60 ProfileList.cpp
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
61 NoSanitizeList.cpp
150
anatofuz
parents:
diff changeset
62 SanitizerSpecialCaseList.cpp
anatofuz
parents:
diff changeset
63 Sanitizers.cpp
anatofuz
parents:
diff changeset
64 SourceLocation.cpp
anatofuz
parents:
diff changeset
65 SourceManager.cpp
anatofuz
parents:
diff changeset
66 Stack.cpp
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
67 TargetID.cpp
150
anatofuz
parents:
diff changeset
68 TargetInfo.cpp
anatofuz
parents:
diff changeset
69 Targets.cpp
anatofuz
parents:
diff changeset
70 Targets/AArch64.cpp
anatofuz
parents:
diff changeset
71 Targets/AMDGPU.cpp
anatofuz
parents:
diff changeset
72 Targets/ARC.cpp
anatofuz
parents:
diff changeset
73 Targets/ARM.cpp
anatofuz
parents:
diff changeset
74 Targets/AVR.cpp
anatofuz
parents:
diff changeset
75 Targets/BPF.cpp
anatofuz
parents:
diff changeset
76 Targets/Hexagon.cpp
anatofuz
parents:
diff changeset
77 Targets/Lanai.cpp
anatofuz
parents:
diff changeset
78 Targets/Le64.cpp
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
79 Targets/M68k.cpp
150
anatofuz
parents:
diff changeset
80 Targets/MSP430.cpp
anatofuz
parents:
diff changeset
81 Targets/Mips.cpp
anatofuz
parents:
diff changeset
82 Targets/NVPTX.cpp
anatofuz
parents:
diff changeset
83 Targets/OSTargets.cpp
anatofuz
parents:
diff changeset
84 Targets/PNaCl.cpp
anatofuz
parents:
diff changeset
85 Targets/PPC.cpp
anatofuz
parents:
diff changeset
86 Targets/RISCV.cpp
anatofuz
parents:
diff changeset
87 Targets/SPIR.cpp
anatofuz
parents:
diff changeset
88 Targets/Sparc.cpp
anatofuz
parents:
diff changeset
89 Targets/SystemZ.cpp
anatofuz
parents:
diff changeset
90 Targets/TCE.cpp
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
91 Targets/VE.cpp
150
anatofuz
parents:
diff changeset
92 Targets/WebAssembly.cpp
anatofuz
parents:
diff changeset
93 Targets/X86.cpp
anatofuz
parents:
diff changeset
94 Targets/XCore.cpp
anatofuz
parents:
diff changeset
95 TokenKinds.cpp
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
96 TypeTraits.cpp
150
anatofuz
parents:
diff changeset
97 Version.cpp
anatofuz
parents:
diff changeset
98 Warnings.cpp
anatofuz
parents:
diff changeset
99 XRayInstr.cpp
anatofuz
parents:
diff changeset
100 XRayLists.cpp
anatofuz
parents:
diff changeset
101 ${version_inc}
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
102
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
103 DEPENDS
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
104 omp_gen
150
anatofuz
parents:
diff changeset
105 )
anatofuz
parents:
diff changeset
106