diff options
| author | 2024-08-08 18:11:59 +0000 | |
|---|---|---|
| committer | 2024-08-08 18:11:59 +0000 | |
| commit | 82201c2db157acffa8c0047fe4568ecd44435df2 (patch) | |
| tree | bb66c48229d4d5dd2add96068ea87aa87e165578 /scripts/gen-kotlin-build-file.py | |
| parent | 9b94da79cd8dff48259b0eccfb5175cb894eaa52 (diff) | |
| parent | 1f75cdf980cf2c2553c1329e0f2ac7c9d01c56de (diff) | |
Merge changes Ib238a83a,I9ed6a649 into main
* changes:
Use rsp for kotlin classpath
Move kotlin stdlib after javac jars
Diffstat (limited to 'scripts/gen-kotlin-build-file.py')
| -rw-r--r-- | scripts/gen-kotlin-build-file.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen-kotlin-build-file.py b/scripts/gen-kotlin-build-file.py index 99afdca75..8b7876f64 100644 --- a/scripts/gen-kotlin-build-file.py +++ b/scripts/gen-kotlin-build-file.py @@ -37,7 +37,7 @@ def parse_args(): parser.add_argument('--out', dest='out', help='file to which the module.xml contents will be written.') parser.add_argument('--classpath', dest='classpath', action='append', default=[], - help='classpath to pass to kotlinc.') + help='file containing classpath to pass to kotlinc.') parser.add_argument('--name', dest='name', help='name of the module.') parser.add_argument('--out_dir', dest='out_dir', @@ -65,8 +65,8 @@ def main(): f.write(' <module name="%s" type="java-production" outputDir="%s">\n' % (args.name, args.out_dir or '')) # Print classpath entries - for c in args.classpath: - for entry in c.split(':'): + for classpath_rsp_file in args.classpath: + for entry in NinjaRspFileReader(classpath_rsp_file): path = os.path.abspath(entry) f.write(' <classpath path="%s"/>\n' % path) |