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

Get dependency directory from cargo metadata #151

Merged
merged 1 commit into from May 28, 2015
Merged

Conversation

@asbaker
Copy link
Contributor

asbaker commented May 28, 2015

@asbaker asbaker force-pushed the asbaker:metadata branch from 34c211e to 9420d6a May 28, 2015
@@ -20,8 +20,7 @@ ifneq (,$(CARGO_FEATURE_DEBUGMOZJS))
CFLAGS += -g -O0 -DDEBUG -D_DEBUG
endif

MOZJS_OUTDIR = $(shell find $(OUT_DIR)/../.. -name 'mozjs_sys-*' -type d)/out
CFLAGS += -I$(MOZJS_OUTDIR)/dist/include
CFLAGS += -I$(DEP_MOZJS_OUTDIR)/dist/include

This comment has been minimized.

@SimonSapin

SimonSapin May 28, 2015

Member

I think this is missing the out component.

This comment has been minimized.

@asbaker

asbaker May 28, 2015

Author Contributor

@SimonSapin I checked it out and it looks like the /out component is part of DEP_MOZJS_OUTDIR from mozjs: cargo:outdir=/Users/abaker/Source/rust-mozjs/target/debug/build/mozjs_sys-476fe81cd282b5dc/out

Here is the result of @echo'ing the old variable and the new variable from rust-mozjs's makefile.cargo:
MOZJS_OUTDIR /Users/abaker/Source/rust-mozjs/target/debug/build/js-892e1c7dbc7e3cb5/out/../../mozjs_sys-476fe81cd282b5dc/out
DEP_MOZJS_OUTDIR /Users/abaker/Source/rust-mozjs/target/debug/build/mozjs_sys-476fe81cd282b5dc/out

Looks like CI is just being cranky because the build ran before mozjs was merged to master. It didn't pick up a value for $(DEP_MOZJS_OUTDIR) at all: -I/dist/include

This comment has been minimized.

@SimonSapin

SimonSapin May 28, 2015

Member

Sorry, you’re right. /out is indeed included in the environment variable. I restarted the Travis build and it’s green now.

SimonSapin added a commit that referenced this pull request May 28, 2015
Get dependency directory from cargo metadata
@SimonSapin SimonSapin merged commit 4c31148 into servo:master May 28, 2015
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/appveyor AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
mmatyas pushed a commit to mmatyas/rust-mozjs that referenced this pull request Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.