Skip to content

Commit

Permalink
[ASan] Add llvm-symbolizer from to tools/
Browse files Browse the repository at this point in the history
This is the second and last (2/2) part of a change that moves llvm-symbolizer to llvm/tools/, which will allow to build it
with both cmake and configure+make.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167723 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ramosian-glider committed Nov 12, 2012
1 parent 9a5f90a commit f41954b
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ add_subdirectory(llvm-bcanalyzer)
add_subdirectory(llvm-stress)
add_subdirectory(llvm-mcmarkup)

add_subdirectory(llvm-symbolizer)

if( NOT WIN32 )
add_subdirectory(lto)
endif()
Expand Down
3 changes: 2 additions & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ PARALLEL_DIRS := opt llvm-as llvm-dis \
bugpoint llvm-bcanalyzer \
llvm-diff macho-dump llvm-objdump llvm-readobj \
llvm-rtdyld llvm-dwarfdump llvm-cov \
llvm-size llvm-stress llvm-mcmarkup
llvm-size llvm-stress llvm-mcmarkup \
llvm-symbolizer

# Let users override the set of tools to build from the command line.
ifdef ONLY_TOOLS
Expand Down
13 changes: 13 additions & 0 deletions tools/llvm-symbolizer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# FIXME: As we plan to execute llvm-symbolizer binary from compiler-rt
# libraries, it has to be compiled for all supported targets (x86_64, i386 etc).
# This means that we need LLVM libraries to be compiled for these
# targets as well. Currently, there is no support for such a build strategy.

set(LLVM_LINK_COMPONENTS
DebugInfo
Object
)

add_llvm_tool(llvm-symbolizer
llvm-symbolizer.cpp
)
17 changes: 17 additions & 0 deletions tools/llvm-symbolizer/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
##===- tools/llvm-symbolizer/Makefile ----------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##

LEVEL := ../..
TOOLNAME := llvm-symbolizer
LINK_COMPONENTS := DebugInfo Object

# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS := 1

include $(LEVEL)/Makefile.common
Loading

0 comments on commit f41954b

Please sign in to comment.