Make sure py-protobuf package can link to libprotobuf when building (#20280)

This commit is contained in:
Tim Moon 2020-12-08 07:52:57 -08:00 committed by GitHub
parent 15fd386a20
commit 90b3f7f259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,11 @@ def build_directory(self):
else:
return '.'
@when('+cpp')
def setup_build_environment(self, env):
protobuf_dir = self.spec['protobuf'].libs.directories[0]
env.prepend_path('LIBRARY_PATH', protobuf_dir)
@when('+cpp')
def build_args(self, spec, prefix):
return ['--cpp_implementation']