Commit d2c8a36b authored by Tudor Bosman's avatar Tudor Bosman Committed by Facebook Github Bot

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
parent 206dce5b
...@@ -13,6 +13,7 @@ generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp ...@@ -13,6 +13,7 @@ generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
generate_fingerprint_tables_LDADD = libfollybase.la generate_fingerprint_tables_LDADD = libfollybase.la
noinst_LTLIBRARIES = \ noinst_LTLIBRARIES = \
libfollybasesse42.la \
libfollybase.la libfollybase.la
lib_LTLIBRARIES = \ lib_LTLIBRARIES = \
...@@ -379,11 +380,13 @@ GroupVarintTables.cpp: build/generate_varint_tables.py ...@@ -379,11 +380,13 @@ GroupVarintTables.cpp: build/generate_varint_tables.py
$(PYTHON) build/generate_varint_tables.py $(PYTHON) build/generate_varint_tables.py
CLEANFILES += GroupVarintTables.cpp CLEANFILES += GroupVarintTables.cpp
libfollybasesse42_la_SOURCES = \
detail/RangeSse42.cpp
libfollybase_la_SOURCES = \ libfollybase_la_SOURCES = \
Conv.cpp \ Conv.cpp \
Demangle.cpp \ Demangle.cpp \
detail/RangeCommon.cpp \ detail/RangeCommon.cpp \
detail/RangeSse42.cpp \
EscapeTables.cpp \ EscapeTables.cpp \
Format.cpp \ Format.cpp \
FormatTables.cpp \ FormatTables.cpp \
...@@ -556,6 +559,10 @@ libfolly_la_SOURCES += \ ...@@ -556,6 +559,10 @@ libfolly_la_SOURCES += \
fibers/TimeoutController.cpp fibers/TimeoutController.cpp
endif 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) libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
libfolly_la_LIBADD = libfollybase.la libfolly_la_LIBADD = libfollybase.la
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment