Fix SkSL test compilation on Windows.
The command-line length limit on Windows is very low (~8000 characters)
so it's infeasible to pass a large number of test files directly on the
command line. Fortunately, GN includes a built-in workaround.
Change-Id: I087fc00f11d81d84f677c2833406b4a6164ea6b3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/360716
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 37a5f78..443cee1 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -710,10 +710,12 @@
]
sources = []
outputs = []
+ response_file_contents = []
args = [
rebase_path(skslc_path),
invoker.lang,
invoker.settings,
+ "{{response_file_name}}",
]
testsDir = get_path_info("tests", "abspath")
@@ -726,10 +728,10 @@
dir = get_path_info(dst, "dir")
name = get_path_info(dst, "name")
ext = get_path_info(dst, "extension")
- args += rebase_path([
- src,
- dir,
- ])
+ response_file_contents += rebase_path([
+ src,
+ dir,
+ ])
sources += [ src ]
foreach(outExtension, invoker.outExtensions) {