From d2c8a36b6b96eea44e9e92fa6946d607f8530b07 Mon Sep 17 00:00:00 2001 From: Tudor Bosman Date: Wed, 2 Nov 2016 15:00:45 -0700 Subject: [PATCH] Compile RangeSse42.cpp with -msse4.2 Summary: Solves #509 by creating a libtool convenience library that's compiled with -msse4.2. Closes https://github.com/facebook/folly/pull/510 Differential Revision: D4120400 Pulled By: yfeldblum fbshipit-source-id: bf5d937dc37ef8707e755c89f1883d65b4d21b0f --- folly/Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/folly/Makefile.am b/folly/Makefile.am index 0ba093ff..f93b7518 100644 --- a/folly/Makefile.am +++ b/folly/Makefile.am @@ -13,6 +13,7 @@ generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp generate_fingerprint_tables_LDADD = libfollybase.la noinst_LTLIBRARIES = \ + libfollybasesse42.la \ libfollybase.la lib_LTLIBRARIES = \ @@ -379,11 +380,13 @@ GroupVarintTables.cpp: build/generate_varint_tables.py $(PYTHON) build/generate_varint_tables.py CLEANFILES += GroupVarintTables.cpp +libfollybasesse42_la_SOURCES = \ + detail/RangeSse42.cpp + libfollybase_la_SOURCES = \ Conv.cpp \ Demangle.cpp \ detail/RangeCommon.cpp \ - detail/RangeSse42.cpp \ EscapeTables.cpp \ Format.cpp \ FormatTables.cpp \ @@ -556,6 +559,10 @@ libfolly_la_SOURCES += \ fibers/TimeoutController.cpp endif +libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) +libfollybasesse42_la_CXXFLAGS = -msse4.2 + +libfollybase_la_LIBADD = libfollybasesse42.la libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) libfolly_la_LIBADD = libfollybase.la -- 2.34.1