mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 14:31:35 +00:00
Modified Makefile and build_tools/build_detect_platform to compile on Linux s390x.
This commit is contained in:
parent
8800975fb0
commit
21f17aaa60
2
Makefile
2
Makefile
|
@ -86,10 +86,12 @@ ifneq ($(DEBUG_LEVEL), 2)
|
|||
OPT += -O2 -fno-omit-frame-pointer
|
||||
ifeq (,$(findstring ppc64,$(MACHINE))) # ppc64[le] doesn't support -momit-leaf-frame-pointer
|
||||
ifneq ($(MACHINE),armv7l)
|
||||
ifneq ($(MACHINE),s390x)
|
||||
OPT += -momit-leaf-frame-pointer
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# if we're compiling for release, compile without debug code (-DNDEBUG) and
|
||||
# don't treat warnings as errors
|
||||
|
|
|
@ -360,6 +360,8 @@ fi
|
|||
if test "$USE_SSE"; then
|
||||
# if Intel SSE instruction set is supported, set USE_SSE=1
|
||||
COMMON_FLAGS="$COMMON_FLAGS -msse -msse4.2 "
|
||||
elif [ "$TARGET_ARCHITECTURE" = s390x ]; then
|
||||
COMMON_FLAGS="$COMMON_FLAGS -march=z10 "
|
||||
elif test -z "$PORTABLE"; then
|
||||
if test -n "`echo $TARGET_ARCHITECTURE | grep ^ppc64`"; then
|
||||
# Tune for this POWER processor, treating '+' models as base models
|
||||
|
|
Loading…
Reference in a new issue