diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-25 12:24:09 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-25 12:32:43 +0300 |
commit | b265ab254b23edca357fcecbd0afade26d5a66ac (patch) | |
tree | 4395624af00d71dc43ff3bfe2d65e37f39798037 /project/ci/dirs.py | |
parent | README: update (diff) | |
download | cmake-common-b265ab254b23edca357fcecbd0afade26d5a66ac.tar.gz cmake-common-b265ab254b23edca357fcecbd0afade26d5a66ac.zip |
project.ci: auto-fill --toolset from environment
Diffstat (limited to 'project/ci/dirs.py')
-rw-r--r-- | project/ci/dirs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/project/ci/dirs.py b/project/ci/dirs.py index bda4360..33bd667 100644 --- a/project/ci/dirs.py +++ b/project/ci/dirs.py @@ -11,6 +11,7 @@ from project.boost.version import Version from project.ci.appveyor.generator import Generator, Image from project.configuration import Configuration from project.platform import Platform +from project.toolchain import ToolchainType from project.utils import env @@ -37,6 +38,11 @@ class Dirs(abc.ABC): def this_one(self): pass + def get_toolset(self): + if 'toolset' in os.environ: + return ToolchainType.parse(os.environ['toolset']) + return None + @abc.abstractmethod def get_platform(self): pass |