spot/spot/priv/Makefile.am
Alexandre Duret-Lutz 3aba452b5b robin_hood: update to version version 3.11.5
* spot/priv/robin_hood.hh: Update.
* spot/priv/Makefile.am: Patch ROBIN_HOOD_IS_TRIVIALLY_COPYABLE to
work around an issue with clang on Arch linux.
2023-01-23 15:25:06 +01:00

53 lines
1.9 KiB
Makefile

## -*- coding: utf-8 -*-
## Copyright (C) 2013-2019, 2021-2023 Laboratoire de Recherche et
## Développement de l'Epita (LRDE).
##
## This file is part of Spot, a model checking library.
##
## Spot is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## Spot is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
## License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(BUDDY_CPPFLAGS) \
-I$(top_builddir)/lib -I$(top_srcdir)/lib
AM_CXXFLAGS = $(WARNING_CXXFLAGS)
noinst_LTLIBRARIES = libpriv.la
libpriv_la_SOURCES = \
accmap.hh \
bddalloc.cc \
bddalloc.hh \
freelist.cc \
freelist.hh \
partitioned_relabel.cc \
partitioned_relabel.hh \
robin_hood.hh \
satcommon.hh\
satcommon.cc\
trim.cc \
trim.hh \
weight.cc \
weight.hh
GH = https://raw.githubusercontent.com/martinus
RH = $(GH)/robin-hood-hashing/master/src/include/robin_hood.h
.PHONY: update
update:
wget $(RH) -O robin_hood.tmp || curl $(RH) -o robin_hood.tmp
## Do not use std::malloc but malloc, because gnulib may replace it by
## rpl_malloc instead. Also disable to tests of __GNUC__ about
## ROBIN_HOOD_IS_TRIVIALLY_COPYABLE because (1) all versions of G++ we
## support have std::is_trivially_copyable, and (2) clang define
## __GNUC__ to some value that fail this test, and then warn that
## __has_trivial_copy is obsoleted.
sed 's/std::malloc/malloc/;/https:\/\/stackoverflow.com\/a\/31798726/{n;s/defined.*/false/}' robin_hood.tmp > $(srcdir)/robin_hood.hh
rm -f robin_hood.tmp