Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kvdb
rocksdb
提交
3f8da15b
R
rocksdb
项目概览
kvdb
/
rocksdb
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rocksdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3f8da15b
编写于
5月 12, 2014
作者:
I
Igor Canadi
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #142 from mlin/build-in-paths-containing-spaces
Fix building RocksDB in paths containing spaces
上级
d08073aa
76596b53
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
27 deletion
+27
-27
Makefile
Makefile
+1
-1
build_tools/build_detect_platform
build_tools/build_detect_platform
+26
-26
未找到文件。
Makefile
浏览文件 @
3f8da15b
...
...
@@ -24,7 +24,7 @@ endif
#-----------------------------------------------
# detect what platform we're building on
$(shell
(
export
ROCKSDB_ROOT
=
$(CURDIR)
;
$(CURDIR)
/build_tools/build_detect_platform
$(CURDIR)
/build_config.mk
))
$(shell
(
export
ROCKSDB_ROOT
=
"
$(CURDIR)
"
;
"
$(CURDIR)
/build_tools/build_detect_platform"
"
$(CURDIR)
/build_config.mk"
))
# this file is generated by the previous line to set build flags and sources
include
build_config.mk
...
...
build_tools/build_detect_platform
浏览文件 @
3f8da15b
...
...
@@ -50,18 +50,18 @@ if [ -d /mnt/gvfs/third-party -a -z "$CXX" ]; then
CENTOS_VERSION
=
`
rpm
-q
--qf
"%{VERSION}"
\
$(
rpm
-q
--whatprovides
redhat-release
)
`
if
[
"
$CENTOS_VERSION
"
=
"6"
]
;
then
source
$PWD
/build_tools/fbcode.gcc481.sh
source
"
$PWD
/build_tools/fbcode.gcc481.sh"
else
source
$PWD
/build_tools/fbcode.gcc471.sh
source
"
$PWD
/build_tools/fbcode.gcc471.sh"
fi
else
source
$PWD
/build_tools/fbcode.clang31.sh
source
"
$PWD
/build_tools/fbcode.clang31.sh"
fi
fi
# Delete existing output, if it exists
rm
-f
$OUTPUT
touch
$OUTPUT
rm
-f
"
$OUTPUT
"
touch
"
$OUTPUT
"
if
test
-z
"
$CC
"
;
then
CC
=
cc
...
...
@@ -87,7 +87,7 @@ PLATFORM_SHARED_CFLAGS="-fPIC"
PLATFORM_SHARED_VERSIONED
=
false
# generic port files (working on all platform by #ifdef) go directly in /port
GENERIC_PORT_FILES
=
`
cd
$ROCKSDB_ROOT
;
find port
-name
'*.cc'
|
tr
"
\n
"
" "
`
GENERIC_PORT_FILES
=
`
cd
"
$ROCKSDB_ROOT
"
;
find port
-name
'*.cc'
|
tr
"
\n
"
" "
`
# On GCC, we pick libc's memcmp over GCC's memcmp via -fno-builtin-memcmp
case
"
$TARGET_OS
"
in
...
...
@@ -157,7 +157,7 @@ case "$TARGET_OS" in
esac
if
test
-z
"
$DO_NOT_RUN_BUILD_DETECT_VERSION
"
;
then
$PWD
/build_tools/build_detect_version
"
$PWD
/build_tools/build_detect_version"
fi
# We want to make a list of all cc files within util, db, table, and helpers
...
...
@@ -169,15 +169,15 @@ DIRS="util db table utilities"
set
-f
# temporarily disable globbing so that our patterns arent expanded
PRUNE_TEST
=
"-name *test*.cc -prune"
PRUNE_BENCH
=
"-name *bench*.cc -prune"
PORTABLE_FILES
=
`
cd
$ROCKSDB_ROOT
;
find
$DIRS
$PRUNE_TEST
-o
$PRUNE_BENCH
-o
-name
'*.cc'
-print
|
sort
|
tr
"
\n
"
" "
`
PORTABLE_CPP
=
`
cd
$ROCKSDB_ROOT
;
find
$DIRS
$PRUNE_TEST
-o
$PRUNE_BENCH
-o
-name
'*.cpp'
-print
|
sort
|
tr
"
\n
"
" "
`
PORTABLE_FILES
=
`
cd
"
$ROCKSDB_ROOT
"
;
find
$DIRS
$PRUNE_TEST
-o
$PRUNE_BENCH
-o
-name
'*.cc'
-print
|
sort
|
tr
"
\n
"
" "
`
PORTABLE_CPP
=
`
cd
"
$ROCKSDB_ROOT
"
;
find
$DIRS
$PRUNE_TEST
-o
$PRUNE_BENCH
-o
-name
'*.cpp'
-print
|
sort
|
tr
"
\n
"
" "
`
set
+f
# re-enable globbing
# The sources consist of the portable files, plus the platform-specific port
# file.
echo
"SOURCES=
$PORTABLE_FILES
$GENERIC_PORT_FILES
$PORT_FILES
"
>>
$OUTPUT
echo
"SOURCESCPP=
$PORTABLE_CPP
"
>>
$OUTPUT
echo
"MEMENV_SOURCES=helpers/memenv/memenv.cc"
>>
$OUTPUT
echo
"SOURCES=
$PORTABLE_FILES
$GENERIC_PORT_FILES
$PORT_FILES
"
>>
"
$OUTPUT
"
echo
"SOURCESCPP=
$PORTABLE_CPP
"
>>
"
$OUTPUT
"
echo
"MEMENV_SOURCES=helpers/memenv/memenv.cc"
>>
"
$OUTPUT
"
if
[
"
$CROSS_COMPILE
"
=
"true"
-o
"
$FBCODE_BUILD
"
=
"true"
]
;
then
# Cross-compiling; do not try any compilation tests.
...
...
@@ -304,17 +304,17 @@ PLATFORM_CXXFLAGS="$PLATFORM_CXXFLAGS $COMMON_FLAGS"
VALGRIND_VER
=
"
$VALGRIND_VER
"
echo
"CC=
$CC
"
>>
$OUTPUT
echo
"CXX=
$CXX
"
>>
$OUTPUT
echo
"PLATFORM=
$PLATFORM
"
>>
$OUTPUT
echo
"PLATFORM_LDFLAGS=
$PLATFORM_LDFLAGS
"
>>
$OUTPUT
echo
"VALGRIND_VER=
$VALGRIND_VER
"
>>
$OUTPUT
echo
"PLATFORM_CCFLAGS=
$PLATFORM_CCFLAGS
"
>>
$OUTPUT
echo
"PLATFORM_CXXFLAGS=
$PLATFORM_CXXFLAGS
"
>>
$OUTPUT
echo
"PLATFORM_SHARED_CFLAGS=
$PLATFORM_SHARED_CFLAGS
"
>>
$OUTPUT
echo
"PLATFORM_SHARED_EXT=
$PLATFORM_SHARED_EXT
"
>>
$OUTPUT
echo
"PLATFORM_SHARED_LDFLAGS=
$PLATFORM_SHARED_LDFLAGS
"
>>
$OUTPUT
echo
"PLATFORM_SHARED_VERSIONED=
$PLATFORM_SHARED_VERSIONED
"
>>
$OUTPUT
echo
"EXEC_LDFLAGS=
$EXEC_LDFLAGS
"
>>
$OUTPUT
echo
"JEMALLOC_INCLUDE=
$JEMALLOC_INCLUDE
"
>>
$OUTPUT
echo
"JEMALLOC_LIB=
$JEMALLOC_LIB
"
>>
$OUTPUT
echo
"CC=
$CC
"
>>
"
$OUTPUT
"
echo
"CXX=
$CXX
"
>>
"
$OUTPUT
"
echo
"PLATFORM=
$PLATFORM
"
>>
"
$OUTPUT
"
echo
"PLATFORM_LDFLAGS=
$PLATFORM_LDFLAGS
"
>>
"
$OUTPUT
"
echo
"VALGRIND_VER=
$VALGRIND_VER
"
>>
"
$OUTPUT
"
echo
"PLATFORM_CCFLAGS=
$PLATFORM_CCFLAGS
"
>>
"
$OUTPUT
"
echo
"PLATFORM_CXXFLAGS=
$PLATFORM_CXXFLAGS
"
>>
"
$OUTPUT
"
echo
"PLATFORM_SHARED_CFLAGS=
$PLATFORM_SHARED_CFLAGS
"
>>
"
$OUTPUT
"
echo
"PLATFORM_SHARED_EXT=
$PLATFORM_SHARED_EXT
"
>>
"
$OUTPUT
"
echo
"PLATFORM_SHARED_LDFLAGS=
$PLATFORM_SHARED_LDFLAGS
"
>>
"
$OUTPUT
"
echo
"PLATFORM_SHARED_VERSIONED=
$PLATFORM_SHARED_VERSIONED
"
>>
"
$OUTPUT
"
echo
"EXEC_LDFLAGS=
$EXEC_LDFLAGS
"
>>
"
$OUTPUT
"
echo
"JEMALLOC_INCLUDE=
$JEMALLOC_INCLUDE
"
>>
"
$OUTPUT
"
echo
"JEMALLOC_LIB=
$JEMALLOC_LIB
"
>>
"
$OUTPUT
"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录