-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Adapt google-glog detection to use CONFIG mode with MODULE fallback and pass… #2474
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,13 @@ | |
"folly.executor", | ||
sources=["folly/executor.pyx", "folly/ProactorExecutor.cpp"], | ||
libraries=["folly", "glog"], | ||
define_macros=[("GLOG_USE_GLOG_EXPORT", "1")], | ||
), | ||
Extension( | ||
"folly.iobuf", | ||
sources=["folly/iobuf.pyx", "folly/iobuf_ext.cpp"], | ||
libraries=["folly", "glog"], | ||
define_macros=[("GLOG_USE_GLOG_EXPORT", "1")], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The export should only be needed when using glog as a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We've only been using glog as a shared library yes - without the macro export the python module compilation doesn't know how to locate the library. Without the setup.py modifications:
|
||
), | ||
] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment I made down below in
setup.py
.