diff --git a/tests/std/tests/P1502R1_standard_library_header_units/custom_format.py b/tests/std/tests/P1502R1_standard_library_header_units/custom_format.py index 9c5c3858e9f..8fe322f324d 100644 --- a/tests/std/tests/P1502R1_standard_library_header_units/custom_format.py +++ b/tests/std/tests/P1502R1_standard_library_header_units/custom_format.py @@ -1,7 +1,6 @@ # Copyright (c) Microsoft Corporation. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -import itertools import os from stl.test.format import STLTestFormat, TestStep @@ -93,9 +92,13 @@ def getBuildSteps(self, test, litConfig, shared): outputDir, outputBase = test.getTempPaths() sourcePath = test.getSourcePath() - compileTestCppWithEdg = '/BE' in itertools.chain(test.flags, test.compileFlags) - if compileTestCppWithEdg: + compileTestCppWithEdg = False + if '/BE' in test.flags: + compileTestCppWithEdg = True test.flags.remove('/BE') + + if '/BE' in test.compileFlags: + compileTestCppWithEdg = True test.compileFlags.remove('/BE') exportHeaderOptions = ['/exportHeader', '/Fo', '/MP']