Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build should support custom CFLAGS #168

Closed
brson opened this issue Nov 2, 2012 · 7 comments
Closed

Build should support custom CFLAGS #168

brson opened this issue Nov 2, 2012 · 7 comments

Comments

@brson
Copy link
Contributor

@brson brson commented Nov 2, 2012

Right now CFLAGS is always overridden by the Makefiles, so turning off optimizations and turning on debug info is difficult.

@burg
Copy link

@burg burg commented Nov 14, 2012

For which submodules is this a problem?

@brson
Copy link
Contributor Author

@brson brson commented Nov 14, 2012

I've had this problem with libcss. I assume that part of the problem is https://github.com/mozilla/servo/blob/master/Makefile.in#L102, which looks like it unconditionally assigns both CFLAGS and RUSTFLAGS.

Meta-phaze added a commit to Meta-phaze/servo that referenced this issue Apr 20, 2013
@Meta-phaze
Copy link
Contributor

@Meta-phaze Meta-phaze commented Apr 20, 2013

Testing:

Case 1:
- In build/src/libcss: make clean
- In build/: CFLAGS=-g make
- confirm build output: cc -g -I/Users/Doug/servo/src/libcss/src ....

Case 2:
- In build/src/libcss: make clean
- In build/: CFLAGS=-O2 make
- confirm build output: cc -O2 -I/Users/Doug/servo/src/libcss/src ....

Case 3:
- In build/src/libcss: make clean
- In build/: make
- confirm build output: cc -I/Users/Doug/servo/src/libcss/src ....

  • Did not test all subcomponents, only libcss
  • Did not adjust RUSTFLAGS, is this needed?
@metajack
Copy link
Contributor

@metajack metajack commented Apr 20, 2013

That patch looks ok, but it seems like we have now lost -O2 in the default case.

@Meta-phaze
Copy link
Contributor

@Meta-phaze Meta-phaze commented Apr 20, 2013

If that is desirable it is easy to add. I will do that right now.

@Meta-phaze
Copy link
Contributor

@Meta-phaze Meta-phaze commented Apr 20, 2013

Testing:

Case 1:

  • clean in libcss
  • in build/: make
  • confirm: cc -O2 -I/Users/Doug/servo/src/libcss/src ...

Case 2:

  • clean in libcss
  • in build/: CFLAGS=-g make
  • confirm: cc -g -I/Users/Doug/servo/src/libcss/src ...
@metajack
Copy link
Contributor

@metajack metajack commented Apr 21, 2013

Thanks.

@metajack metajack closed this Apr 21, 2013
ChrisParis pushed a commit to ChrisParis/servo that referenced this issue Sep 7, 2014
The only first <shadow> element is used
glennw pushed a commit to glennw/servo that referenced this issue Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.