We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 66583c7 + e5e3a0a commit 774ca27Copy full SHA for 774ca27
lldb/test/Shell/helper/toolchain.py
@@ -219,7 +219,16 @@ def use_support_substitutions(config):
219
sdk_path = lit.util.to_string(out)
220
llvm_config.lit_config.note("using SDKROOT: %r" % sdk_path)
221
host_flags += ["-isysroot", sdk_path]
222
- elif sys.platform != "win32":
+ elif sys.platform == "win32":
223
+ # Required in SwiftREPL tests
224
+ sdk_path = os.environ.get("SDKROOT")
225
+ if sdk_path:
226
+ llvm_config.lit_config.note(f"using SDKROOT: {sdk_path}")
227
+ llvm_config.with_environment("SDKROOT", sdk_path)
228
+ else:
229
+ llvm_config.lit_config.warning(
230
+ "mandatory environment variable not found: SDKROOT")
231
232
host_flags += ["-pthread"]
233
234
config.target_shared_library_suffix = (
0 commit comments