mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-19 06:38:28 +00:00
718292f260
Module map files provide a way to map between headers and modules, so that we can layer a module system on top of existing headers without changing those headers at all. This commit introduces the module map file parser and the module map that it generates, and wires up the module map file parser so that we'll automatically find module map files as part of header search. Note that we don't yet use the information stored in the module map. llvm-svn: 144402
31 lines
582 B
CMake
31 lines
582 B
CMake
# TODO: Add -maltivec when ARCH is PowerPC.
|
|
|
|
set(LLVM_LINK_COMPONENTS support)
|
|
|
|
set(LLVM_USED_LIBS clangBasic)
|
|
|
|
add_clang_library(clangLex
|
|
HeaderMap.cpp
|
|
HeaderSearch.cpp
|
|
Lexer.cpp
|
|
LiteralSupport.cpp
|
|
MacroArgs.cpp
|
|
MacroInfo.cpp
|
|
ModuleMap.cpp
|
|
PPCaching.cpp
|
|
PPDirectives.cpp
|
|
PPExpressions.cpp
|
|
PPLexerChange.cpp
|
|
PPMacroExpansion.cpp
|
|
PTHLexer.cpp
|
|
Pragma.cpp
|
|
PreprocessingRecord.cpp
|
|
Preprocessor.cpp
|
|
PreprocessorLexer.cpp
|
|
ScratchBuffer.cpp
|
|
TokenConcatenation.cpp
|
|
TokenLexer.cpp
|
|
)
|
|
|
|
add_dependencies(clangLex ClangDiagnosticLex ClangAttrSpellings)
|