Re: [lldb-dev] [cfe-dev] [llvm-dev] GitHub anyone?

2016-06-01 Thread Dan Liew via lldb-dev
On 1 June 2016 at 10:19, Tim Northover  wrote:
> On 1 June 2016 at 10:12, Dan Liew via cfe-dev  wrote:
>> the directories for each submodule will stay empty. Thus it isn't
>> necessary to pull down all the sources when using git submodules.
>> This would need support from the build system though. I'm not sure
>> what the build system would do right now if it found an empty
>> ``tools/clang`` directory in the source tree.
>
> You can't have submodules within submodules like that (or at least it
> didn't let me yesterday).

I didn't say anything about nested submodules. I was imagining the
LLVM repo being the top level repository with submodules for

projects/libcxx
projects/libcxxabi
projects/compiler-rt
tools/clang
tools/lldb

etc..

There's no nesting of submodules here. This assumes an in source tree
nesting of projects which perhaps is something we shouldn't do given
that the projects can also be built outside the source tree.

However I should say given previous experience with submodules I am a
little bit wary using them because of the problems caused by
developers not using them properly and breaking stuff.

I like the sounds of Mehdi's proposal of an automated integration
repository although I would need to look at the details a little
closer.
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] [llvm-dev] [cfe-dev] GitHub anyone?

2016-06-01 Thread Dan Liew via lldb-dev
> Even though git 1.7 or something deals with submodules better - I
> don't personally like them at all. I'd rather have a convenience
> script or something which pulls and clones the sources. Not everyone
> needs all the sources and then there's the question of all the
> subprojects and build.. etc Not changing the workflow here would be
> most sane..

Git submodule don't force you to clone all the submodules. Until you run

```
git submodule init
git submodule update
```

the directories for each submodule will stay empty. Thus it isn't
necessary to pull down all the sources when using git submodules.
This would need support from the build system though. I'm not sure
what the build system would do right now if it found an empty
``tools/clang`` directory in the source tree.



> So clone llvm ; cd tools / ; clone ...
> --
> good luck with this.. I foresee near religious opinions on the horizon..

As do I.
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev