Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
1002155c
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1002155c
编写于
4月 08, 2015
作者:
B
Brian Anderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add --enable-debug to control multiple perf options
上级
7cbf8233
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
5 deletion
+33
-5
configure
configure
+33
-5
未找到文件。
configure
浏览文件 @
1002155c
...
...
@@ -523,19 +523,16 @@ fi
BOOL_OPTIONS
=
""
VAL_OPTIONS
=
""
opt debug 0
"debug mode"
opt valgrind 0
"run tests with valgrind (memcheck by default)"
opt helgrind 0
"run tests with helgrind instead of memcheck"
opt valgrind-rpass 1
"run rpass-valgrind tests with valgrind"
opt docs 1
"build standard library documentation"
opt compiler-docs 0
"build compiler documentation"
opt optimize 1
"build optimized rust code"
opt optimize-cxx 1
"build optimized C++ code"
opt optimize-llvm 1
"build optimized LLVM"
opt optimize-tests 1
"build tests with optimizations"
opt libcpp 1
"build with llvm with libc++ instead of libstdc++ when using clang"
opt llvm-assertions 0
"build LLVM with assertions"
opt debug-assertions 0
"build with debugging assertions"
opt debuginfo 0
"build with debugger metadata"
opt fast-make 0
"use .gitmodules as timestamp for submodule deps"
opt ccache 0
"invoke gcc/clang via ccache to reuse object files between builds"
opt local-rust 0
"use an installed rustc rather than downloading a snapshot"
...
...
@@ -546,6 +543,14 @@ opt dist-host-only 0 "only install bins for the host architecture"
opt inject-std-version 1
"inject the current compiler version of libstd into programs"
opt llvm-version-check 1
"don't check if the LLVM version is supported, build anyway"
# Optimization and debugging options. These may be overridden by the release channel, etc.
opt_nosave optimize 1
"build optimized rust code"
opt_nosave optimize-cxx 1
"build optimized C++ code"
opt_nosave optimize-llvm 1
"build optimized LLVM"
opt_nosave llvm-assertions 0
"build LLVM with assertions"
opt_nosave debug-assertions 0
"build with debugging assertions"
opt_nosave debuginfo 0
"build with debugger metadata"
valopt localstatedir
"/var/lib"
"local state directory"
valopt sysconfdir
"/etc"
"install system configuration files"
...
...
@@ -620,6 +625,24 @@ case "$CFG_RELEASE_CHANNEL" in
;;
esac
# Adjust perf and debug options for debug mode
if
[
-n
"
$CFG_ENABLE_DEBUG
"
]
;
then
msg
"debug mode enabled, setting performance options"
CFG_DISABLE_OPTIMIZE
=
1
CFG_DISABLE_OPTIMIZE_CXX
=
1
CFG_DISABLE_OPTIMIZE_LLVM
=
1
CFG_ENABLE_LLVM_ASSERTIONS
=
1
CFG_ENABLE_DEBUG_ASSERTIONS
=
1
fi
# OK, now write the debugging options
if
[
-n
"
$CFG_DISABLE_OPTIMIZE
"
]
;
then
putvar CFG_DISABLE_OPTIMIZE
;
fi
if
[
-n
"
$CFG_DISABLE_OPTIMIZE_CXX
"
]
;
then
putvar CFG_DISABLE_OPTIMIZE_CXX
;
fi
if
[
-n
"
$CFG_DISABLE_OPTIMIZE_LLVM
"
]
;
then
putvar CFG_DISABLE_OPTIMIZE_LLVM
;
fi
if
[
-n
"
$CFG_ENABLE_LLVM_ASSERTIONS
"
]
;
then
putvar CFG_ENABLE_LLVM_ASSERTIONS
;
fi
if
[
-n
"
$CFG_ENABLE_DEBUG_ASSERTIONS
"
]
;
then
putvar CFG_ENABLE_DEBUG_ASSERTIONS
;
fi
if
[
-n
"
$CFG_ENABLE_DEBUGINFO
"
]
;
then
putvar CFG_ENABLE_DEBUGINFO
;
fi
# A magic value that allows the compiler to use unstable features
# during the bootstrap even when doing so would normally be an error
# because of feature staging or because the build turns on
...
...
@@ -1425,6 +1448,11 @@ move_if_changed config.tmp config.mk
rm
-f
config.tmp
touch
config.stamp
step_msg
"complete"
if
[
-z
"
$CFG_ENABLE_DEBUG
"
]
;
then
step_msg
"configured in release mode. for development consider --enable-debug"
else
step_msg
"complete"
fi
msg
"run
\`
make help
\`
"
msg
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录