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

Zachary Turner zturner at google.com
Thu Dec 18 07:30:46 PST 2014


Easiest way is to Make a subfolder called x86 and move the files there.
Then selectively include them from the subfolder. Host does something
similar if you want an example
On Thu, Dec 18, 2014 at 3:08 AM Aidan Dodds <Aidan at codeplay.com> wrote:

> 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/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141218/0dd1a15b/attachment.html>


More information about the lldb-commits mailing list