File: empty-flags-library.diff

package info (click to toggle)
abseil 20220623.1-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,236 kB
  • sloc: cpp: 149,868; pascal: 1,362; sh: 654; python: 446; makefile: 35; ansic: 10
file content (19 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Benjamin Barenblat <bbaren@google.com>
Subject: Eliminate libabsl_flags.so and libabsl_flags.a
Forwarded: not-needed

The libabsl_flags library only contains code when compiling with MSVC, which
Debian doesn't use. Skip compiling absl/flags/flag.cc, and make the Abseil flags
library header-only.

--- a/absl/flags/CMakeLists.txt
+++ b/absl/flags/CMakeLists.txt
@@ -199,8 +199,6 @@
 absl_cc_library(
   NAME
     flags
-  SRCS
-    "flag.cc"
   HDRS
     "declare.h"
     "flag.h"