mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
update the cmakefile. This is a "best guess", I haven't tested this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61561 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01bb8b0c36
commit
db7ba94c88
@ -1,32 +1,6 @@
|
||||
# AsmParser, with a Bison generated parser:
|
||||
include(FindBison)
|
||||
find_bison()
|
||||
|
||||
if(BISON_EXECUTABLE)
|
||||
bison_generator(
|
||||
"llvmAsm"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.y"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp"
|
||||
)
|
||||
else(BISON_EXECUTABLE)
|
||||
message(STATUS "Bison not found, the pregenerated files will be used")
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp"
|
||||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp.cvs"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp.cvs" "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp"
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h"
|
||||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h.cvs"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h.cvs" "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h"
|
||||
)
|
||||
endif(BISON_EXECUTABLE)
|
||||
|
||||
# AsmParser
|
||||
add_llvm_library(LLVMAsmParser
|
||||
llvmAsmParser.cpp # Generated from llvmAsmParser.y or copyied from corresponding .cvs
|
||||
llvmAsmParser.h # needed for the associated custom command to work
|
||||
LLLexer.cpp
|
||||
LLParser.cpp
|
||||
Parser.cpp
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user