Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
r316800, thanks! On Fri, Oct 27, 2017 at 2:07 PM, Zachary Turner wrote: > One more nitpick. Can you make it a dependency of `check-lldb-lit` target > also? Just for the sake of pedantry. > > On Fri, Oct 27, 2017 at 2:04 PM Pavel Labath wrote: >> >> Ship it. >> >> On 27 October 2017 at 13:56, D

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Zachary Turner via lldb-dev
One more nitpick. Can you make it a dependency of `check-lldb-lit` target also? Just for the sake of pedantry. On Fri, Oct 27, 2017 at 2:04 PM Pavel Labath wrote: > Ship it. > > On 27 October 2017 at 13:56, Davide Italiano > wrote: > > Take 2 (it can't be in the top-level CMakeList because th

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Pavel Labath via lldb-dev
Ship it. On 27 October 2017 at 13:56, Davide Italiano wrote: > Take 2 (it can't be in the top-level CMakeList because the check-lldb > target is declared elsewhere). > > $ git diff HEAD > diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt > index d5d71d1..958f9f3 100644 > --- a/test/CMakeList

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
Take 2 (it can't be in the top-level CMakeList because the check-lldb target is declared elsewhere). $ git diff HEAD diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d5d71d1..958f9f3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -109,6 +109,12 @@ add_python_test_target(

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Pavel Labath via lldb-dev
On 27 October 2017 at 13:28, Zachary Turner wrote: > Maybe make it a dependency of the `check-lldb` target instead of the `lldb` > target? > +1 ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Zachary Turner via lldb-dev
Maybe make it a dependency of the `check-lldb` target instead of the `lldb` target? On Fri, Oct 27, 2017 at 1:26 PM Davide Italiano wrote: > I'm testing with the following change. > Should I shove the dependency instead in test/CmakeLists.txt ? > > $ git diff HEAD > diff --git a/CMakeLists.txt b

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
I'm testing with the following change. Should I shove the dependency instead in test/CmakeLists.txt ? $ git diff HEAD diff --git a/CMakeLists.txt b/CMakeLists.txt index c6b082e..b6d24f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,7 @@ if(LLDB_INCLUDE_TESTS) if (TARGET clang)

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Zachary Turner via lldb-dev
Agree we should just build clang as a dependency. We're already building most of it anyway since we require it for the expression parser, so spitting out the executabatle as well should not be too controversial. On Fri, Oct 27, 2017 at 12:58 PM Davide Italiano via lldb-dev < lldb-dev@lists.llvm.o

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
Mind if I try to write a patch for this one or you want to do it? On Fri, Oct 27, 2017 at 12:56 PM, Pavel Labath wrote: > Yes, listing clang as a dependency sounds like a good idea. > > On 27 October 2017 at 12:45, Davide Italiano wrote: >> So, I wiped out my directory for the build and then I c

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
On Fri, Oct 27, 2017 at 12:52 PM, Ted Woodward wrote: > I think if clang exists in-tree, it should be used. If it doesn't, the > compiler used to build lldb should be used. > > Unless, of course, the compiler is specified with the cmake variables. > I think that if the default is to run tests wi

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Pavel Labath via lldb-dev
Yes, listing clang as a dependency sounds like a good idea. On 27 October 2017 at 12:45, Davide Italiano wrote: > So, I wiped out my directory for the build and then I created it again using > cmake -GNinja ../ > > I found out what the bug/problem is, BTW (was going to reply to this > e-mail but

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Ted Woodward via lldb-dev
um, a Linux Foundation Collaborative Project > -Original Message- > From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of Davide > Italiano via lldb-dev > Sent: Friday, October 27, 2017 2:46 PM > To: Pavel Labath > Cc: LLDB > Subject: Re: [lldb-dev] c

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
So, I wiped out my directory for the build and then I created it again using cmake -GNinja ../ I found out what the bug/problem is, BTW (was going to reply to this e-mail but you've beaten me to the punch). You switched LLDB to build with an in-tree clang, but ninja check-lldb doesn't really requi

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Pavel Labath via lldb-dev
Did you clean your cmake cache before runinng this? Does '/home/davide/work/build-lldb/bin/clang' correctly refer to a clang binary you just built? On 27 October 2017 at 12:39, Davide Italiano wrote: > Yes, it seems `configuration.compiler` is None, so this explodes: > > [...] > if not is

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
Yes, it seems `configuration.compiler` is None, so this explodes: [...] if not is_exe(configuration.compiler): [...] On Fri, Oct 27, 2017 at 12:37 PM, Davide Italiano wrote: > I think that this change (or some change nearby) broke `check-lldb` on Fedora. > > I'm investigating, but in th

Re: [lldb-dev] check-lldb will start using in-tree clang by default

2017-10-27 Thread Davide Italiano via lldb-dev
I think that this change (or some change nearby) broke `check-lldb` on Fedora. I'm investigating, but in the meanwhile, here's the log. $ ninja check-lldb [2/2] Testing LLDB (parallel execution, with a separate subprocess per test) Traceback (most recent call last): File "/home/davide/work/llvm

[lldb-dev] check-lldb will start using in-tree clang by default

2017-10-26 Thread Pavel Labath via lldb-dev
I am going to check in a change (D39215) which causes the check-lldb target to use the just-built clang for compiling the test inferiors (instead of the system compiler, which was the old default). The main reason for this is to provide better reproducibility of test results between different machi