Skip to content

Commit

Permalink
ffmpeg: hacky fix for "Argument list too long"
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed May 21, 2024
1 parent 1e359a5 commit 395f7f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/ffmpeg/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from conan import ConanFile
from conan import ConanFile, conan_version
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
from conan.tools.build import cross_building
Expand Down Expand Up @@ -349,6 +349,10 @@ def validate(self):
raise ConanInvalidConfiguration("FFmpeg '{}' option requires '{}' option to be enabled".format(
dependency, "' or '".join(features)))

if conan_version.major == 1 and is_msvc(self) and self.options.shared and Version(self.version) >= "6.1.1":
# Linking fails with "Argument list too long" for some reason on Conan v1
raise ConanInvalidConfiguration("MSVC shared build is not supported for Conan v1")

def build_requirements(self):
if self.settings.arch in ("x86", "x86_64"):
self.tool_requires("yasm/1.3.0")
Expand Down

0 comments on commit 395f7f6

Please sign in to comment.