[Lldb-commits] [PATCH] Fix compilation faliures for x64 visual studio 2013 build

Aidan Dodds Aidan at codeplay.com
Thu Dec 18 03:08:48 PST 2014


Selectively including .cpp files in CMake may be harder then it first looks since the LLVM cmake automaticaly throw an error when it finds unincluded .cpp files.
When I tried to bypass RegisterContextWindows_x86.cpp for x64 targets I get the following error:

  CMake Error at cmake/modules/LLVMProcessSources.cmake:70 (message):
    Found unknown source file
    D:/tiplldb/llvm/tools/lldb/source/Plugins/Process/Windows/RegisterContextWindows_x86.cpp
  
  
    Please update
    D:/tiplldb/llvm/tools/lldb/source/Plugins/Process/Windows/CMakeLists.txt
  
  Call Stack (most recent call first):
    cmake/modules/LLVMProcessSources.cmake:44 (llvm_check_source_file_list)
    tools/lldb/CMakeLists.txt:230 (llvm_process_sources)
    tools/lldb/source/Plugins/Process/Windows/CMakeLists.txt:20 (add_lldb_library)

For reference, here was my modifications to lldb/source/plugins/process/windows/cmakelists.txt:

  set(LLVM_NO_RTTI 1)
  
  include_directories(.)
  include_directories(../Utility)
  
  set(lldbPluginProcessWindowsSources
    DebuggerThread.cpp
    DynamicLoaderWindows.cpp
    LocalDebugDelegate.cpp
    ProcessWindows.cpp
    TargetThreadWindows.cpp
    )
  
  if (CMAKE_SIZEOF_VOID_P EQUAL 4)
    list(lldbPluginProcessWindowsSources APPEND
      RegisterContextWindows_x86.cpp
      )
  endif()
  
  add_lldb_library(lldbPluginProcessWindows
    ${lldbPluginProcessWindowsSources}
    )

Do you know any way to work around this?
Or do you have any suggestions how we can fix the build for x64 targets in the short term?

Thanks


http://reviews.llvm.org/D6704

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list