-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix sysroot for qnx under autotools #18897
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
Conversation
| if sysroot: | ||
| root = sysroot.replace("\\", "/") | ||
| compiler = self._conanfile.settings.get_safe("compiler") | ||
| self.sysroot_flag = f"--sysroot {root}" if compiler != "qcc" else f"-Wc,-isysroot {root}" |
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 think the correct syntax is "-Wc,-isysroot,{root}". At least then the configuration went through and this is also how CMake passes the sysroot to qcc.
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.
Good point, thanks for checking it, I overlooked that detail, I'll fix it.
* fix sysroot for qnx under autotools * fix comma
* wip * working * removed vxworks test * fixes * fix sysroot for qnx under autotools (#18897) * fix sysroot for qnx under autotools * fix comma * Feature/config install pkg lock (#17793) * conan config install-pkg from lockfile * checking locked config-requires * wip * wip * wip * minor refactor * wip * wip * fixes * reverted to not break existing cache config_version.json * fix test * wip * wip * wip * wip * final proposal * imports * ready for review * review, better API, better UX default to cwd, new command * fix test * fix ignore of conaninfo.txt and conanmanifest.txt * msg for conan config clean * [MesonToolchain] `needs_exe_wrapper` depends on `can_run` function (#19382) * Conditioned to can_run property * comments * without quotes * Fixed test * precedence * wip * wip * fixes * fixes * fixes * fixes * fixes * Update test/functional/toolchains/gnu/autotools/test_win_bash.py Co-authored-by: Carlos Zoido <[email protected]> --------- Co-authored-by: Francisco Ramírez <[email protected]> Co-authored-by: Carlos Zoido <[email protected]>
Changelog: Fix: Avoid
AutotoolsToolchain/GnuToolchainto define--sysrootfor QNXqcccompiler, define-Wc,-isysrootinstead.Docs: Omit
Close #18890