-
Notifications
You must be signed in to change notification settings - Fork 1
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
Automate readelf and verbosity #3
Conversation
@@ -54,6 +54,10 @@ def run(cmd): | |||
f"-DCMAKE_INSTALL_PREFIX={install_dir}/{project} {defines} {shared_cmake} {charmander_header_cmake}") | |||
run(f"cmake --build {build_dir}/{project} --config Release") | |||
run(f"cmake --install {build_dir}/{project} --config Release") | |||
if platform == "windows": | |||
run(f"{build_dir}/squirtle/Release/hello.exe") | |||
elif platform == "linux": |
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.
do we want otool -L ...
on mac for the same?
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.
Sure, but I don't have a Mac to test, can be added later, this is the idea
Updated with the results of conan-io/conan#17459, now things look good on the linking transitive shared libraries side:
(Full details in the README of the PR) |
if self.settings.os == "Linux": | ||
self.run(f"readelf -d {exe}") | ||
if self.settings.os == "Windows": | ||
self.run(f"dumpbin /DEPENDENTS {exe}.exe", env="conanrun") |
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.
does this work without having to find the tool? (i thought typically this only worked inside a vcvars environment)
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.
I explicitly added a VCVars(self).generate(scope="run")
in the generate()
to allow this.
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.
LGTM!
And readme with result details