Skip to content

Commit a98635a

Browse files
committed
Use environ to set PlatformToolset for Windows Clang builder
1 parent f57be5c commit a98635a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

master/custom/factories.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ class MacOSAsanNoGilBuild(UnixAsanNoGilBuild):
621621

622622
class BaseWindowsBuild(BaseBuild):
623623
build_command = [r"Tools\buildbot\build.bat"]
624+
compile_environ = {}
624625
test_command = [r"Tools\buildbot\test.bat"]
625626
clean_command = [r"Tools\buildbot\clean.bat"]
626627
python_command = [r"python.bat"]
@@ -643,7 +644,10 @@ def setup(self, branch, worker, **kwargs):
643644
*self.cleanFlags,
644645
*get_j_opts(worker),
645646
]
646-
self.addStep(Compile(command=build_command))
647+
self.addStep(Compile(
648+
command=build_command,
649+
env=self.compile_environ,
650+
))
647651
self.addStep(PythonInfo(
648652
command=self.python_command + ["-m", "test.pythoninfo"],
649653
))
@@ -681,7 +685,9 @@ class Windows64Build(BaseWindowsBuild):
681685

682686

683687
class Windows64ClangBuild(Windows64Build):
684-
buildFlags = [*Windows64Build.buildFlags, '"/p:PlatformToolset=ClangCL"']
688+
compile_environ = {
689+
"PlatformToolset": "ClangCL",
690+
}
685691
factory_tags = [*Windows64Build.factory_tags, 'clang']
686692

687693

0 commit comments

Comments
 (0)