Skip to content

Commit

Permalink
Don't disable target optimizations when cross-compiling. (cloudflare#15)
Browse files Browse the repository at this point in the history
* PS-237 Don't disable target optimizations when cross-compiling.

AFAICT there's no reason to check the host platform here. The test only runs the compiler; it doesn't execute the output.

* Add misc intermediate files to .gitignore.
  • Loading branch information
kentonv authored and vkrasnov committed Apr 1, 2019
1 parent e55212b commit ffda798
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@
/zlib.pc

.DS_Store

/build
/Makefile
/configure.log
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ EOF
fi

# Check for AMD64 hardware support.
if [ x$TGT_ARCH = "xx86_64" -a $(uname -m) = "x86_64" -o x$TGT_ARCH = "xamd64" -a $(uname -m) = "amd64" ] ; then
if [ x$TGT_ARCH = "xx86_64" -o x$TGT_ARCH = "xamd64" ] ; then

# Check for SSE4.2 and CRC support
cat > $test.c << EOF
Expand Down Expand Up @@ -779,7 +779,7 @@ EOF
echo "Checking for PCLMUL support ... No" | tee -a configure.log
fi

elif [ x$TGT_ARCH = "xaarch64" -a $(uname -m) = "aarch64" ] ; then
elif [ x$TGT_ARCH = "xaarch64" ] ; then

# Check for NEON and CRC support
cat > $test.c << EOF
Expand Down

0 comments on commit ffda798

Please sign in to comment.