Skip to content

Commit 41c299b

Browse files
committed
temp
1 parent 982192f commit 41c299b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Formula/o/osrm-backend.rb

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# typed: false
2-
31
class OsrmBackend < Formula
42
desc "High performance routing engine"
53
homepage "https://project-osrm.org/"
@@ -27,7 +25,6 @@ class OsrmBackend < Formula
2725
depends_on "pkgconf" => :build
2826

2927
depends_on "boost"
30-
depends_on "gcc"
3128
depends_on "libstxxl"
3229
depends_on "libxml2"
3330
depends_on "libzip"
@@ -38,18 +35,19 @@ class OsrmBackend < Formula
3835
uses_from_macos "expat"
3936
uses_from_macos "zlib"
4037

38+
on_linux do
39+
depends_on "llvm" => :build
40+
end
41+
4142
conflicts_with "flatbuffers", because: "both install flatbuffers headers"
4243
conflicts_with "mapnik", because: "both install Mapbox Variant headers"
4344

4445
def install
46+
ENV.llvm_clang if OS.linux?
47+
4548
# Work around build failure: duplicate symbol 'boost::phoenix::placeholders::uarg9'
4649
# Issue ref: https://github.com/boostorg/phoenix/issues/111
4750
ENV.append_to_cflags "-DBOOST_PHOENIX_STL_TUPLE_H_"
48-
# Work around build failure on Linux:
49-
# /tmp/osrm-backend-20221105-7617-1itecwd/osrm-backend-5.27.1/src/osrm/osrm.cpp:83:1:
50-
# /usr/include/c++/11/ext/new_allocator.h:145:26: error: 'void operator delete(void*, std::size_t)'
51-
# called on unallocated object 'result' [-Werror=free-nonheap-object]
52-
ENV.append_to_cflags "-Wno-free-nonheap-object" if OS.linux?
5351

5452
lua = Formula["lua"]
5553
luaversion = lua.version.major_minor

0 commit comments

Comments
 (0)