Fix lua build, missing deref of self for spec (#15927)

Looks like something changed and a case was missed.

Function doesn't have a spec arg, need to dereference it off of
self.

Builds on OS X.
This commit is contained in:
George Hartzell 2020-04-07 15:00:53 -07:00 committed by GitHub
parent 45fe9add2e
commit 153c888432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ def setup_dependent_run_environment(self, env, dependent_spec):
if dependent_spec.package.extends(self.spec):
env.prepend_path('LUA_PATH', ';'.join(lua_patterns), separator=';')
if '+shared' in spec:
if '+shared' in self.spec:
env.prepend_path('LUA_CPATH', ';'.join(lua_cpatterns),
separator=';')