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
Summary:
With some compilers, `-std=c++11` is necessary for <cstdint> to be
available. Pass this flag via $PLATFORM_CXXFLAGS. Fixes #2488.
Closes #2545

Differential Revision: D5620610

Pulled By: yiwu-arbug

fbshipit-source-id: 2f975b8c1ad52e283e677d9a33543abd064f13ce
  • Loading branch information
benesch authored and facebook-github-bot committed Aug 14, 2017
1 parent 185ade4 commit c5f0c6c
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 @@ -458,7 +458,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 c5f0c6c

Please sign in to comment.