-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise for toolchains different than CMakeToolchain if using universal…
… binary syntax (#15896) * raise if not supported toolchain * check toolchain name * fix tests
- Loading branch information
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
conans/test/integration/toolchains/test_raise_on_universal_binaries.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from parameterized import parameterized | ||
|
||
from conans.test.assets.genconanfile import GenConanfile | ||
from conans.test.utils.tools import TestClient | ||
|
||
|
||
@parameterized.expand(["AutotoolsToolchain", "MesonToolchain", "BazelToolchain"]) | ||
def test_create_universal_binary(toolchain): | ||
client = TestClient() | ||
conanfile = (GenConanfile().with_settings("os", "arch", "compiler", "build_type").with_generator(toolchain)) | ||
client.save({"conanfile.py": conanfile}) | ||
|
||
client.run('create . --name=foo --version=1.0 -s="arch=armv8|armv8.3|x86_64"', | ||
assert_error=True) | ||
assert f"Error in generator '{toolchain}': Universal binaries not supported by toolchain." in client.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters