Disable .toc generation for windows
toc.sh doesn't support windows.
Bug: 36874115
Test: builds
Change-Id: Id38ce60bf2d11a56938eb37193589ccee845a855
diff --git a/cc/library.go b/cc/library.go
index 1871696..e9e796e 100644
--- a/cc/library.go
+++ b/cc/library.go
@@ -462,7 +462,7 @@
builderFlags := flagsToBuilderFlags(flags)
- if !ctx.Darwin() {
+ if !ctx.Darwin() && !ctx.Windows() {
// Optimize out relinking against shared libraries whose interface hasn't changed by
// depending on a table of contents file instead of the library itself.
tocPath := outputFile.RelPathString()