Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index afedebc8591906544b5cabfea6bcdab0ed15925c..461b30f983d1184c548f3464dcbef3260fc56020 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -462,11 +462,8 @@ config("compiler") { |
ldflags += [ "-Wl,-plugin-opt,-function-sections" ] |
} |
- # TODO(pcc): Make these flags work correctly with CFI. |
- if (!is_cfi) { |
- cflags += [ "-fwhole-program-vtables" ] |
- ldflags += [ "-fwhole-program-vtables" ] |
- } |
+ cflags += [ "-fwhole-program-vtables" ] |
+ ldflags += [ "-fwhole-program-vtables" ] |
} |
# Pass the same C/C++ flags to the objective C/C++ compiler. |