Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit b4df1e7

Browse files
author
Dylan McKay
committed
Merge branch 'master' into avr-support
2 parents 2e0ff8d + 2e99ba2 commit b4df1e7

File tree

621 files changed

+25087
-22931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

621 files changed

+25087
-22931
lines changed

CODE_OWNERS.TXT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ D: libc++
4444

4545
N: Peter Collingbourne
4646
E: peter@pcc.me.uk
47-
D: llgo
47+
D: llgo, libLTO (lib/LTO/* tools/lto/*)
4848

4949
N: Quentin Colombet
5050
E: qcolombet@apple.com
@@ -194,7 +194,7 @@ D: SystemZ Backend
194194

195195
N: Bill Wendling
196196
E: isanbard@gmail.com
197-
D: libLTO, IR Linker
197+
D: IR Linker
198198

199199
N: Hans Wennborg
200200
E: hans@chromium.org

cmake/config-ix.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ if(HAVE_LIBPTHREAD)
113113
endif()
114114

115115
# Don't look for these libraries on Windows. Also don't look for them if we're
116-
# using MSan, since uninstrmented third party code may call MSan interceptors
116+
# using MSan, since uninstrumented third party code may call MSan interceptors
117117
# like strlen, leading to false positives.
118118
if( NOT PURE_WINDOWS AND NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
119119
if (LLVM_ENABLE_ZLIB)

cmake/modules/AddLLVM.cmake

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ macro(add_llvm_library name)
555555
elseif(ARG_BUILDTREE_ONLY)
556556
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name})
557557
else()
558-
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO")
558+
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO" OR
559+
(LLVM_LINK_LLVM_DYLIB AND ${name} STREQUAL "LLVM"))
559560
set(install_dir lib${LLVM_LIBDIR_SUFFIX})
560561
if(ARG_SHARED OR BUILD_SHARED_LIBS)
561562
if(WIN32 OR CYGWIN OR MINGW)
@@ -1245,6 +1246,12 @@ function(add_llvm_tool_symlink name dest)
12451246

12461247
set(output_path "${LLVM_RUNTIME_OUTPUT_INTDIR}/${name}${CMAKE_EXECUTABLE_SUFFIX}")
12471248

1249+
set(target_name ${name})
1250+
if(TARGET ${name})
1251+
set(target_name ${name}-link)
1252+
endif()
1253+
1254+
12481255
if(ARG_ALWAYS_GENERATE)
12491256
set_property(DIRECTORY APPEND PROPERTY
12501257
ADDITIONAL_MAKE_CLEAN_FILES ${dest_binary})
@@ -1254,8 +1261,8 @@ function(add_llvm_tool_symlink name dest)
12541261
add_custom_command(OUTPUT ${output_path}
12551262
COMMAND ${CMAKE_COMMAND} -E ${LLVM_LINK_OR_COPY} "${dest_binary}" "${output_path}"
12561263
DEPENDS ${dest})
1257-
add_custom_target(${name} ALL DEPENDS ${output_path})
1258-
set_target_properties(${name} PROPERTIES FOLDER Tools)
1264+
add_custom_target(${target_name} ALL DEPENDS ${output_path})
1265+
set_target_properties(${target_name} PROPERTIES FOLDER Tools)
12591266

12601267
# Make sure the parent tool is a toolchain tool, otherwise exclude this tool
12611268
list(FIND LLVM_TOOLCHAIN_TOOLS ${dest} LLVM_IS_${dest}_TOOLCHAIN_TOOL)

cmake/modules/AddSphinxTarget.cmake

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ function (add_sphinx_target builder project)
5353
DESTINATION share/man/man1)
5454

5555
elseif (builder STREQUAL html)
56-
install(DIRECTORY "${SPHINX_BUILD_DIR}"
57-
DESTINATION "share/doc/${project}")
56+
string(TOUPPER "${project}" project_upper)
57+
set(${project_upper}_INSTALL_SPHINX_HTML_DIR "share/doc/${project}/html"
58+
CACHE STRING "HTML documentation install directory for ${project}")
59+
60+
# '/.' indicates: copy the contents of the directory directly into
61+
# the specified destination, without recreating the last component
62+
# of ${SPHINX_BUILD_DIR} implicitly.
63+
install(DIRECTORY "${SPHINX_BUILD_DIR}/."
64+
DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
5865
else()
5966
message(WARNING Installation of ${builder} not supported)
6067
endif()

0 commit comments

Comments
 (0)