Skip to content

Commit ba267cf

Browse files
committed
Fix for gcc being a dummy
Also clang being too permissive - gcc apparently can't cope with linker args coming before the file name, that causes a bunch of "undefined reference" errors, whereas clang is perfectly happy with it - on the other hand clang apparently exposes unexpected symbols without needing to include the corresponding header, so add those
1 parent f500c57 commit ba267cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

regex-filtered/re2/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LDFLAGS += -lre2
44
.PHONY: clean
55

66
bench: bench.cpp
7-
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
7+
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
88

99
clean:
1010
@rm bench

regex-filtered/re2/bench.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
#include <cassert>
12
#include <chrono>
23
#include <fstream>
4+
#include <iomanip>
35
#include <iostream>
46
#include <re2/filtered_re2.h>
57
#include <re2/re2.h>

0 commit comments

Comments
 (0)