Skip to content

Conversation

memsharded
Copy link
Member

Changelog: Fix: Avoid AutotoolsToolchain/GnuToolchain to define --sysroot for QNX qcc compiler, define -Wc,-isysroot instead.
Docs: Omit

Close #18890

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}"
Copy link
Contributor

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.

Copy link
Member Author

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.

@memsharded memsharded modified the milestones: 2.21.0, 2.22.0 Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Unsupported flag --sysroot passed by autotools toolchain generator when building for QNX

3 participants