File: tests-opt.patch

package info (click to toggle)
libnop 0.0~git20211103.35e800d-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,180 kB
  • sloc: cpp: 13,946; ansic: 3,537; makefile: 100; python: 73
file content (25 lines) | stat: -rw-r--r-- 660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Build tests with default optimization
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/984190
Forwarded: https://github.com/google/libnop/issues/32

--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
 GTEST_INCLUDE ?= $(GTEST_INSTALL)/include
 
 HOST_CFLAGS := -g -O2 -Wall -Werror -Wextra -Iinclude
-HOST_CXXFLAGS := -std=c++14
+HOST_CXXFLAGS :=
 HOST_LDFLAGS :=
 
 ifeq ($(HOST_OS),Linux)
@@ -44,7 +44,7 @@
 
 # Build tests if gtest is found.
 M_NAME := test
-M_CFLAGS := -I$(GTEST_INCLUDE) -O0 -g
+M_CFLAGS := -I$(GTEST_INCLUDE) -Wno-error -g
 M_LDFLAGS := -L$(GTEST_LIB) -lgtest -lgmock
 M_OBJS := \
 	test/nop_tests.o \