-
Notifications
You must be signed in to change notification settings - Fork 472
Move source files into src subfolder
#1352
Conversation
|
This is going to cause a lot of problems for me. Is there a specific entrypoint to include c/h files? Writing a cpp file like mega.cpp Just creates a broken compile time situation. Can as part of this some sort of import source/header that includes all files in the correct order? |
|
The only headers you should include are the ones that will be in I guess it will take me 5 minutes to update
I'm also thinking about moving the headers into a |
|
I build libsass from source since it makes the Go binary more portable.
On Thu, Jul 16, 2015 at 1:20 PM Marcel Greter notifications@github.com
|
|
perl-libsass builds it from source too. Can't you just pass another include directory to the invoked compiler? Seems to be one of the most common cases IMO! Or I don't understand your concerns!! |
|
@mgreter I'd prefer to avoid this for now. WE should come back to this after 3.4 when we have parity. For I the over head this is going to introduce when going through git history to find issues/regressions has more cost than benefits here. |
|
I'll check out your perl-sass setup and see if it helps. Thanks! |
|
@xzyfer this should all be unproblematic! a) there is one commit that just moves the files. So we don't lose history or anything! |
|
🚢 when 🚥 is ready |
9768c85 to
708464d
Compare
src subfolder
|
Here the commit needed to adjust perl-libsass: sass/perl-libsass@cdb2c44 |
|
Looks pretty reasonable to me. 👍 |
|
Merged changes needed for sassc spec runner to pass CI ... let's wait and see 🚥 |
|
Hmm, not sure I love it but I think there are few things to consider:
The reason why it may be useful - I am compiling
Some middle-term thoughts:
|
|
Point 3 sounds related to #1223. It would be nice if this was generated by the build rather than modifying it and creating git submodules changes. Or if there was a standalone make rule to update it without performing a build. |
|
d986679 to
557693b
Compare
|
re 1) What about having hand-generated Makefile in one directory and autotools-generated Makefile in another? Maybe The reason I raise this I want to avoid another move because this will be easier for some other reason (simplifying the script for example). Here's a simpler https://github.com/saper/sassc/blob/fixautoconf/ci-build file that actually can be made even more simple. And we should almost never need to change the directory in the script if the Makefiles are right... |
557693b to
cd5155a
Compare
8d44da1 to
f488ec2
Compare
|
@saper I don't really see why 1) is such a big problem. The only annoyance I have with it is that I have to be carefull when changing the makefile without commiting and later running autoreconf (which would overwrite any previous unstaged changes). I also accidentaly commit it once or twice, but nothing a rebase/ammed could fix. Other than that I don't see any issues!? |
|
Pretty sure CI is going 💚 in a few minutes and I'll 🚢 this. It has been tested on mingw (makefiles via CI) under cmd, mingw under msys (makefiles and autotools), gcc and clang on linux (makefiles and autotools via CI), clang on mac (makefiles and autotools via CI) and MSVC under windows via CI. Also tested building sassc directly under windows in all variations (plus CI tests on linux). Each for shared and static! |
c3294e6 to
bc802ba
Compare
|
It is a problem, because |
Move source files into `src` subfolder
|
I guess not much we can do about that for now, I only consider it an annoyance. Maybe you can tell autotools to build the Makefile somewhere else for you? Or use the plain makefiles!? BTW: https://github.com/sass/libsass looks much better, doesn't it? |
|
#1358 moves Makefile.am to GNUmakefile.am (plus fixes some issues with |
|
It's also an order of operation problem. Sass version is modified in the
|
Move sources into sub folder and other code reorganizations (only last commits are relevant). Waiting for other PRs to be merged, so this can be rebased! For now I also had to use my local sassc repo.