Skip to content
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

Boost Recipe: Update conanfile.py to use expected clang-win libprefix #21713

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions recipes/boost/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from conan import ConanFile
from conan.errors import ConanException, ConanInvalidConfiguration
from conan.tools.apple import is_apple_os, to_apple_arch, XCRun
from conan.tools.build import build_jobs, check_min_cppstd, cross_building, valid_min_cppstd, supported_cppstd

Check warning on line 4 in recipes/boost/all/conanfile.py

View workflow job for this annotation

GitHub Actions / Lint changed conanfile.py (v2 migration)

Unused check_min_cppstd imported from conan.tools.build
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import (
apply_conandata_patches, chdir, collect_libs, copy, export_conandata_patches,
Expand Down Expand Up @@ -1879,6 +1879,8 @@
libprefix = ""
if is_msvc(self) and (not self._shared or n in self._dependencies["static_only"]):
libprefix = "lib"
elif self._toolset == "clang-win":
libprefix = "lib"
return libprefix + n

all_detected_libraries = set(l[:-4] if l.endswith(".dll") else l for l in collect_libs(self))
Expand Down
Loading