Skip to content

Commit

Permalink
compile with correct flags to determine SSE4.2 support
Browse files Browse the repository at this point in the history
With some compilers, `-std=c++11` is necessary for <cstdint> to be
available. Pass this flag via $PLATFORM_CXXFLAGS. Fixes #2488.
  • Loading branch information
benesch committed Jul 8, 2017
1 parent a43c053 commit 430f014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_tools/build_detect_platform
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ elif test -z "$PORTABLE"; then
fi
fi

$CXX $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF
$CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF
#include <cstdint>
#include <nmmintrin.h>
int main() {
Expand Down

0 comments on commit 430f014

Please sign in to comment.