Re: [lldb-dev] Conditionally adding sources to the build

2016-12-05 Thread Pavel Labath via lldb-dev
Hi, I am not aware of anyone ever trying that. In theory it should work if you copy the build and source folders to the other machine and run dotest.py with the right arguments there, but I guess that is not what you meant by "easy". The thing that I would try in this situation is to set it up so

Re: [lldb-dev] Conditionally adding sources to the build

2016-12-02 Thread Dmitry Mikulin via lldb-dev
I have a slightly unrelated question: is there an easy way to cross-build, say, an ARM lldb, and run native tests on an ARM board same as what check-lldb does? The lldb test page only talks about running remote tests. No info on cross testing. Thanks! On Dec 2, 2016, at 2:29 AM, Pavel Labath

Re: [lldb-dev] Conditionally adding sources to the build

2016-12-02 Thread Pavel Labath via lldb-dev
I am glad to see freebsd is making progress on this front. If you need any help with understanding how lldb-server works, feel free to shoot me a question. pl On 1 December 2016 at 23:00, Dmitry Mikulin wrote: > Thanks for the suggestions. > I’m working on native support for FreeBSD lldb-server

Re: [lldb-dev] Conditionally adding sources to the build

2016-12-01 Thread Dmitry Mikulin via lldb-dev
Thanks for the suggestions. I’m working on native support for FreeBSD lldb-server, and wanted to have an option to build it both ways until it’s stable enough to replace current implementation. I’ll have it in a separate directory. On Dec 1, 2016, at 2:55 AM, Pavel Labath mailto:lab...@google.

Re: [lldb-dev] Conditionally adding sources to the build

2016-12-01 Thread Pavel Labath via lldb-dev
The way we have done this with Linux native register contexts was to notionally leave the files in the build, but completely #ifdef out their contents (see NativeRegisterConextLinux_arm.cpp). It's not very nice, but I think it's better than having six subfolders, each with a single cpp file. If you

Re: [lldb-dev] Conditionally adding sources to the build

2016-11-30 Thread Zachary Turner via lldb-dev
Unfortunately you will need to separate them at the directory levels. On Wed, Nov 30, 2016 at 4:29 PM Dmitry Mikulin via lldb-dev < lldb-dev@lists.llvm.org> wrote: > Hi, > > I’m trying to conditionally add source files to the lldb build based on a > cmake configure time variable. I get the follow

[lldb-dev] Conditionally adding sources to the build

2016-11-30 Thread Dmitry Mikulin via lldb-dev
Hi, I’m trying to conditionally add source files to the lldb build based on a cmake configure time variable. I get the following type of errors for all sources not included in the build: CMake Error at cmake/modules/LLVMProcessSources.cmake:83 (message): Found unknown source file /homes/dm