Repository navigation
Fix build for win32, remove --enable-gczeal that snuck back in - #71
Conversation
|
Someone should test this on linux/osx with the removing of --enable-gczeal, but without the second patch -- we should see if this is a windows-specific gcc issue, or if we're doing something we shouldn't be. |
|
I'd like @michaelwu to take a look at the second commit. |
|
I think the original linking problem may be due to -fno-keep-inline-dllexport that is added to the gcc flags in configure... but haven't tested without, would rather get static linking working properly. |
177f8c3 to
1a58f44
Compare
|
Should this be two separate PRs? One to remove --enable-gc-zeal and one to fix building on windows? |
|
Sure? Note that I'm working through a bunch of this stuff in https://bugzilla.mozilla.org/show_bug.cgi?id=1238203 so that we get it all in upstream. |
commented
Jan 13, 2016
|
An alternative to moving setTracingLocation and other functions is to remove those from the bindings - I don't think we need those functions, and they appear to be gone from upstream SM anyway. I'm fine with either solution though, since these functions are going to disappear in the future. |
commented
Jan 13, 2016
|
Currently failing on linux with: |
commented
Jan 13, 2016
|
@vvuk You may already know, but if not, here's a note on the hackery so you don't need to allocate/delete critical sections - http://joeduffyblog.com/2006/11/28/windows-keyed-events-critical-sections-and-new-vista-synchronization-features/ |
commented
Jan 13, 2016
|
Arg, PR_CallOnceWithArg went away in m-c sm, but I guess not here. I'll fix shortly. Same with just removing those methods from the tracer. As for critical sections... I had no idea about SRWLs. Since we're already depending on >= Vista, I'll switch to using them. |
commented
Jan 16, 2016
|
It looks like this is passing CI builds now. @vvuk Is this ready to be reviewed/landed? |
commented
Jan 19, 2016
|
@vvuk and @michaelwu Is there anything more that needs to be done here to land this? I think it's the last piece we need before we land the Win32 changes to Servo master. |
commented
Jan 19, 2016
|
I'm happy with the approach here. |
commented
Jan 20, 2016
commented
Jan 20, 2016
|
Did rust-mozjs changes land, that had the removal of that in the bindings? |
commented
Jan 20, 2016
commented
Jan 20, 2016
|
Great, thanks! That did it for me :-) I'm opening the servo/servo PR, since it can land independently of these changes (which switch to static linking). That will let me start working on the CI/builder stuff. |
commented
Jan 21, 2016
|
@bors-servo r=michaelwu |
commented
Jan 21, 2016
|
📌 Commit d221277 has been approved by |
commented
Jan 21, 2016
commented
Jan 21, 2016
|
☀️ Test successful - travis |
For some reason, gcc isn't generating public symbols for setTracingLocation if they're defined inline in the class declaration in the header. There's probably an attribute we could apply or something, but this was the simplest way to get this to work.