fix: Only set package_id:confs for sanitized builds (#2261)

This commit is contained in:
Ayaz Salikhov
2025-06-30 13:15:28 +01:00
committed by GitHub
parent 9bee023105
commit 24e1aa9ae5
5 changed files with 14 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ compiler.version=12
os=Linux
[conf]
tools.build:compiler_executables={'c': '/usr/bin/gcc-12', 'cpp': '/usr/bin/g++-12'}
tools.build:compiler_executables={"c": "/usr/bin/gcc-12", "cpp": "/usr/bin/g++-12"}
```
> [!NOTE]
@@ -72,12 +72,11 @@ tools.build:compiler_executables={'c': '/usr/bin/gcc-12', 'cpp': '/usr/bin/g++-1
#### global.conf file
Add the following to the `~/.conan2/global.conf` file:
To increase the speed of downloading and uploading packages, add the following to the `~/.conan2/global.conf` file:
```text
core.download:parallel={{os.cpu_count()}}
core.upload:parallel={{os.cpu_count()}}
tools.info.package_id:confs = ["tools.build:cflags", "tools.build:cxxflags", "tools.build:exelinkflags", "tools.build:sharedlinkflags"]
```
#### Artifactory