Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-10-02 Thread Eric Fiselier via cfe-commits
EricWF abandoned this revision. EricWF added a comment. Abandoning in favor of http://reviews.llvm.org/D13407. http://reviews.llvm.org/D11963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-09-16 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. Hi Eric, have you had a chance to take another look at this? It is blocking http://reviews.llvm.org/D11740. http://reviews.llvm.org/D11963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-09-01 Thread Evgeniy Stepanov via cfe-commits
eugenis added a subscriber: eugenis. eugenis added a comment. This would greatly simplify the abi versioning change in http://reviews.llvm.org/D11740. Thanks for working on this! Comment at: include/CMakeLists.txt:24 @@ +23,3 @@ + -P ${LIBCXX_SOURCE_DIR}/cmake/Modules/CopyLibc

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-31 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. Without the context of this review, this strategy probably won't make any sense. So it's probably worth capturing these notes in a comment that describes why we're doing it that way. http://reviews.llvm.org/D11963 ___ cfe

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-31 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11963#236376, @jroelofs wrote: > In http://reviews.llvm.org/D11963#236045, @EricWF wrote: > > > So that's not what happens but that's because libc++ builds using the > > headers in the source directory. During the build all of the macros in the

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-31 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D11963#236045, @EricWF wrote: > So that's not what happens but that's because libc++ builds using the headers > in the source directory. During the build all of the macros in the > __config_site file are manually defined on the command line s

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-30 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11963#235148, @jroelofs wrote: > In http://reviews.llvm.org/D11963#234789, @EricWF wrote: > > > Copy the headers to the build directory during every build instead of just > > during CMake configuration. > > > Sounds like this would cause every

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-28 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D11963#234789, @EricWF wrote: > Copy the headers to the build directory during every build instead of just > during CMake configuration. Sounds like this would cause every build to effectively be a full build. I don't think we want that...

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 33384. EricWF added a comment. Copy the headers to the build directory during every build instead of just during CMake configuration. http://reviews.llvm.org/D11963 Files: CMakeLists.txt cmake/Modules/CopyLibcxxHeaders.cmake cmake/Modules/HandleLibcxx

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-24 Thread Eric Fiselier via cfe-commits
EricWF updated the summary for this revision. EricWF updated this revision to Diff 32997. EricWF added a comment. Update diff to remove misc cleanup stuff. http://reviews.llvm.org/D11963 Files: CMakeLists.txt cmake/Modules/HandleLibcxxFlags.cmake include/CMakeLists.txt include/__config_

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-24 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 32992. EricWF added a comment. This patch takes @jroelof's idea and runs with it. However this patch doesn't require a `__config_site` header. The patch works modifying `build-libcxx/include/c++/v1/__config` by prepending the contents of `__config_site`. If

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-24 Thread Eric Fiselier via cfe-commits
EricWF commandeered this revision. EricWF edited reviewers, added: jroelofs; removed: EricWF. EricWF added a comment. Stealing this revision. I have a different plan. http://reviews.llvm.org/D11963 ___ cfe-commits mailing list cfe-commits@lists.llvm

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-19 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D11963#228024, @EricWF wrote: > Wouldn't it still be a mess if you build both libc++ and libc++abi > out-of-tree? The user would have to be aware of these weird requirements. Oh, yeah, true. Do we have any out-of-tree builders to make sure t

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-19 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11963#227933, @jroelofs wrote: > In http://reviews.llvm.org/D11963#227444, @EricWF wrote: > > > I also just realized that this change will currently likely play havoc with > > how libc++ and libc++abi build together. In order to build libc++ an

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-19 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11963#227951, @jroelofs wrote: > In http://reviews.llvm.org/D11963#227441, @EricWF wrote: > > > @jroelofs What do you think of an approach like this? > > > Having two copies of the __config_site file makes me uncomfortable, but I > could put up

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-19 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D11963#227441, @EricWF wrote: > @jroelofs What do you think of an approach like this? Having two copies of the __config_site file makes me uncomfortable, but I could put up with that given that they're effectively the same for 99% of people

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-19 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D11963#227444, @EricWF wrote: > I also just realized that this change will currently likely play havoc with > how libc++ and libc++abi build together. In order to build libc++ and > libc++abi together we would need to > > 1. Configure libc++

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-18 Thread Eric Fiselier via cfe-commits
EricWF added a comment. I also just realized that this change will currently likely play havoc with how libc++ and libc++abi build together. In order to build libc++ and libc++abi together we would need to 1. Configure libc++ pointing to the libc++abi headers in order to generate the __config_

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-18 Thread Eric Fiselier via cfe-commits
EricWF added a comment. I think we can avoid requiring the need to rebuild every time the headers change but it's not the cleanest. We could 1. Have an empty `__config_site` file in `libcxx/include`. This `__config_site` file does not get copied into the build directory. 2. Generate `__config_s

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-12 Thread Jonathan Roelofs via cfe-commits
jroelofs updated this revision to Diff 31949. jroelofs added a comment. Add license text to the new file, and move the two has-no-threads tests to test/libcxx. http://reviews.llvm.org/D11963 Files: CMakeLists.txt include/CMakeLists.txt include/__config include/__config_site.in test/l

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-12 Thread Eric Fiselier via cfe-commits
EricWF added a reviewer: EricWF. EricWF added a comment. @jroelofs Thanks for this patch. I've needed this for a while. Comment at: include/__config:19 @@ -18,1 +18,3 @@ +#include <__config_site> + #ifdef __GNUC__ jroelofs wrote: > jroelofs wrote: > > mclow.lis

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-12 Thread Jonathan Roelofs via cfe-commits
jroelofs added inline comments. Comment at: include/__config:19 @@ -18,1 +18,3 @@ +#include <__config_site> + #ifdef __GNUC__ jroelofs wrote: > mclow.lists wrote: > > espositofulvio wrote: > > > mclow.lists wrote: > > > > I'm reluctant to do this; because every i

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-12 Thread Marshall Clow via cfe-commits
mclow.lists added inline comments. Comment at: include/__config:19 @@ -18,1 +18,3 @@ +#include <__config_site> + #ifdef __GNUC__ espositofulvio wrote: > mclow.lists wrote: > > I'm reluctant to do this; because every include file slows down compilation > > - for

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-12 Thread Jonathan Roelofs via cfe-commits
jroelofs added inline comments. Comment at: include/__config:19 @@ -18,1 +18,3 @@ +#include <__config_site> + #ifdef __GNUC__ espositofulvio wrote: > mclow.lists wrote: > > I'm reluctant to do this; because every include file slows down compilation > > - for eve

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-12 Thread Fulvio Esposito via cfe-commits
espositofulvio added inline comments. Comment at: include/__config:19 @@ -18,1 +18,3 @@ +#include <__config_site> + #ifdef __GNUC__ mclow.lists wrote: > I'm reluctant to do this; because every include file slows down compilation - > for every program that we com

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-11 Thread Marshall Clow via cfe-commits
mclow.lists added inline comments. Comment at: include/__config:19 @@ -18,1 +18,3 @@ +#include <__config_site> + #ifdef __GNUC__ I'm reluctant to do this; because every include file slows down compilation - for every program that we compile. However, this may b

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-11 Thread Jonathan Roelofs via cfe-commits
jroelofs updated this revision to Diff 31885. jroelofs added a comment. @danalbert: sigh, yes. http://reviews.llvm.org/D11963 Files: CMakeLists.txt include/CMakeLists.txt include/__config include/__config_site.in test/libcxx/test/config.py test/std/atomics/libcpp-has-no-threads.pass

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-11 Thread Dan Albert via cfe-commits
danalbert added inline comments. Comment at: CMakeLists.txt:304 @@ +303,3 @@ +configure_file( + include/__config_site.in + ${CMAKE_BINARY_DIR}/include/c++/v1/__config_site Did you forget to upload this? http://reviews.llvm.org/D11963 ___

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-11 Thread Jonathan Roelofs via cfe-commits
jroelofs updated this revision to Diff 31878. jroelofs added a comment. fix typo http://reviews.llvm.org/D11963 Files: CMakeLists.txt include/CMakeLists.txt include/__config test/libcxx/test/config.py test/std/atomics/libcpp-has-no-threads.pass.cpp test/std/utilities/date.time/teste