Skip to content

Instantly share code, notes, and snippets.

@dougpuob
Last active April 4, 2021 23:58
Show Gist options
  • Save dougpuob/6b5ac1b0821bf313c984c55c4e0cbbf8 to your computer and use it in GitHub Desktop.
Save dougpuob/6b5ac1b0821bf313c984c55c4e0cbbf8 to your computer and use it in GitHub Desktop.
llvmorg-11.1.0-patch

Change#1 (Remove)

./llvm-project.git/lib/cmake/clang/ClangConfig.cmake

set(CLANG_EXPORTED_TARGETS "clangBasic;clangLex;clangParse;clangAST;clangDynamicASTMatchers;clangASTMatchers;clangCrossTU;clangSema;clangCodeGen;clangAnalysis;clangEdit;clangRewrite;clangARCMigrate;clangDriver;clangSerialization;clangRewriteFrontend;clangFrontend;clangFrontendTool;clangToolingCore;clangToolingInclusions;clangToolingRefactoring;clangToolingASTDiff;clangToolingSyntax;clangDependencyScanning;clangTransformer;clangTooling;clangDirectoryWatcher;clangIndex;clangStaticAnalyzerCore;clangStaticAnalyzerCheckers;clangStaticAnalyzerFrontend;clangFormat;clangTesting; diagtool;clang;clang-format;clangHandleCXX;clangHandleLLVM;clang-offload-bundler;clang-offload-wrapper;clang-scan-deps;clang-rename;clang-refactor;clang-check;clang-extdef-mapping; libclang")


Change#2 (Remark)

./llvm-project.git/lib/cmake/clang/ClangTargets.cmake

## Loop over all imported files and verify that they actually exist
#foreach(target ${_IMPORT_CHECK_TARGETS} )
#  foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
#    if(NOT EXISTS "${file}" )
#      message(FATAL_ERROR "The imported target \"${target}\" references the file
#   \"${file}\"
#but this file does not exist.  Possible reasons include:
#* The file was deleted, renamed, or moved to another location.
#* An install or uninstall procedure did not complete successfully.
#* The installation package was faulty and contained
#   \"${CMAKE_CURRENT_LIST_FILE}\"
#but not all the files it references.
#")
#    endif()
#  endforeach()
#  unset(_IMPORT_CHECK_FILES_FOR_${target})
#endforeach()
#unset(_IMPORT_CHECK_TARGETS)

Change#3 (Remark)

./llvm-project.git/lib/cmake/llvm/LLVMExports.cmake

#set_target_properties(LLVMDebugInfoPDB PROPERTIES
#  INTERFACE_LINK_LIBRARIES "LLVMBinaryFormat;LLVMDebugInfoCodeView;LLVMDebugInfoMSF;LLVMObject;LLVMSupport;C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/DIA SDK/lib/amd64/diaguids.lib"
#)

Change#4 (Remark)

./llvm-project.git/lib/cmake/llvm/LLVMExports.cmake

## Loop over all imported files and verify that they actually exist
#foreach(target ${_IMPORT_CHECK_TARGETS} )
#  foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
#    if(NOT EXISTS "${file}" )
#      message(FATAL_ERROR "The imported target \"${target}\" references the file
#   \"${file}\"
#but this file does not exist.  Possible reasons include:
#* The file was deleted, renamed, or moved to another location.
#* An install or uninstall procedure did not complete successfully.
#* The installation package was faulty and contained
#   \"${CMAKE_CURRENT_LIST_FILE}\"
#but not all the files it references.
#")
#    endif()
#  endforeach()
#  unset(_IMPORT_CHECK_FILES_FOR_${target})
#endforeach()
#unset(_IMPORT_CHECK_TARGETS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment