mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Allow `-typecheck-module-from-interface` using explicit module instead of building implicit module. This setups swift-frontend to accept explicit module build arguments and loading explicit module during verifying. SwiftDriver needs to setup correct arguments including the output path for swift module to fully enable explicit module interface check.
18 lines
349 B
Python
Executable File
18 lines
349 B
Python
Executable File
#!/usr/bin/env python3
|
|
#
|
|
# Usage: ExtractOutputKey.py file.json OutputPath
|
|
|
|
import json
|
|
import sys
|
|
|
|
input_json = sys.argv[1]
|
|
output_path = sys.argv[2]
|
|
|
|
|
|
with open(input_json, 'r') as file:
|
|
outputs = json.load(file)
|
|
for output in outputs:
|
|
if output['OutputPath'] != output_path:
|
|
continue
|
|
print(output['CacheKey'])
|