question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] apple-clang compatibility with compiler.version="13"

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version:
  • Compiler+version: apple-clang
  • Conan version: >1.46.0
  • Python version:

https://github.com/conan-io/conan/blob/229a7c9bfea8d454770e7253bd72b1804bb43b46/conans/model/info.py#L606

    def apple_clang_compatible(self):
        # https://github.com/conan-io/conan/pull/10797
        # apple-clang compiler version 13 will be compatible with 13.0
        if not self.settings.compiler or \
           (self.settings.compiler != "apple-clang" and self.settings.compiler.version != "13"):
            return

        compatible = self.clone()
        compatible.settings.compiler.version = "13.0"
        return compatible

the if-statement must be changed to:

        if not self.settings.compiler or \
           (self.settings.compiler != "apple-clang" or self.settings.compiler.version != "13"):
            return

and -> or because we want the compatible package, if the compiler==“apple_clang” and compiler.version==“13”, that means, we do not want it, if compiler!=“apple_clang” or compiler.version!=“13”

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RalfBieligcommented, May 12, 2022

Thanks a lot for the fast fix! Regarding the second thing: I suppose that happens if an identic compatible package is added twice. In my case the apple-clang “13.0” package was added once implicitly by the bug youve fixed and once by myself in the package_id() call. Ill open a new issue, if I can verify the above

0reactions
memshardedcommented, May 13, 2022

Yes, thanks @NoWiseMan for pointing it out !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clang 13.0.0 Release Notes
This document contains the release notes for the Clang C/C++/Objective-C frontend, part of the LLVM Compiler Infrastructure, release 13.0.0. Here we describe ...
Read more >
Clang linking error MacOS Big Sur
It seems like there is no GCC support in Big Sur (?). I get the same message when I try to build with...
Read more >
Apple Clang 13 C++20 Module Support Missing
Is there another way to get modules working OR is there some undocumented C++20 modules limitation with Apple Clang 13? Note: compiling with...
Read more >
Clang - Wikipedia
Clang 14, the latest major version of Clang as of March 2022, has full support for all published C++ standards up to C++17,...
Read more >
Understanding the different flavors of Clang C and C++ ...
It is also possible to alter the default MSVC compatibility behavior with the compiler option -fms-compatibility-version , which makes clang ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found