Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
079c3b02
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,发现更多精彩内容 >>
提交
079c3b02
编写于
4月 30, 2012
作者:
G
Graydon Hoare
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update llvm and integrate clang and compiler-rt.
上级
5b980002
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
30 deletion
+23
-30
configure
configure
+21
-28
src/llvm
src/llvm
+1
-1
src/rustllvm/RustWrapper.cpp
src/rustllvm/RustWrapper.cpp
+1
-1
未找到文件。
configure
浏览文件 @
079c3b02
...
...
@@ -259,9 +259,9 @@ esac
DEFAULT_HOST_TRIPLE
=
"
${
CFG_CPUTYPE
}
-
${
CFG_OSTYPE
}
"
CFG_S
ELF
=
$(
echo
$0
|
tr
'\\'
'/'
)
CFG_
SRC_DIR
=
"
$(
dirname
$CFG_SELF
)
/"
CFG_
BUILD_DIR
=
"
$(
echo
$PWD
|
tr
'\\'
'/'
)
/"
CFG_S
RC_DIR
=
"
$(
cd
$(
dirname
$0
)
&&
pwd
)
/"
CFG_
BUILD_DIR
=
"
$(
pwd
)
/"
CFG_
SELF
=
${
CFG_SRC_DIR
}
$(
basename
$0
)
CFG_CONFIGURE_ARGS
=
"
$@
"
OPTIONS
=
""
...
...
@@ -509,32 +509,25 @@ step_msg "configuring submodules"
if
[
-z
$CFG_DISABLE_MANAGE_SUBMODULES
]
then
cd
${
CFG_SRC_DIR
}
msg
"git: submodule sync"
"
${
CFG_GIT
}
"
submodule
sync
--quiet
SUBMODULES
=
$(
"
${
CFG_GIT
}
"
submodule status |
awk
'{print $2}'
)
for
s
in
$SUBMODULES
do
msg
"git: submodule status
${
s
}
"
status
=
$(
"
${
CFG_GIT
}
"
submodule status
${
s
}
|
awk
'{print $1}'
)
case
${
status
}
in
-
*
)
msg
"
${
s
}
is not initialized, initializing"
"
${
CFG_GIT
}
"
submodule init
--quiet
${
s
}
need_ok
"git failed"
msg
"
${
s
}
updating"
"
${
CFG_GIT
}
"
submodule update
--quiet
${
s
}
need_ok
"git failed"
;;
+
*
)
msg
"
${
s
}
is not up to date, updating"
"
${
CFG_GIT
}
"
submodule update
--quiet
${
s
}
need_ok
"git failed"
;;
*
)
msg
"
${
s
}
is clean"
;;
esac
done
"
${
CFG_GIT
}
"
submodule
--quiet
sync
# NB: this is just for the sake of getting the submodule SHA1 values
# and status written into the build log.
msg
"git: submodule status"
"
${
CFG_GIT
}
"
submodule status
--recursive
msg
"git: submodule update"
"
${
CFG_GIT
}
"
submodule
--quiet
update
--init
--recursive
need_ok
"git failed"
msg
"git: submodule clobber"
"
${
CFG_GIT
}
"
submodule
--quiet
foreach
--recursive
git clean
-dxf
need_ok
"git failed"
"
${
CFG_GIT
}
"
submodule
--quiet
foreach
--recursive
git checkout
.
need_ok
"git failed"
cd
${
CFG_BUILD_DIR
}
fi
...
...
llvm
@
3a57b672
比较
8b035b5f
...
3a57b672
Subproject commit
8b035b5fe83ca15df171e581681bbc9cbd7e2ae0
Subproject commit
3a57b672f89adcb2d2d06adc564dc15ca4e276d6
src/rustllvm/RustWrapper.cpp
浏览文件 @
079c3b02
...
...
@@ -97,7 +97,7 @@ LLVMRustWriteOutputFile(LLVMPassManagerRef PMR,
const
Target
*
TheTarget
=
TargetRegistry
::
lookupTarget
(
triple
,
Err
);
std
::
string
FeaturesStr
;
std
::
string
Trip
(
triple
);
std
::
string
CPUStr
=
llvm
::
sys
::
getHostCPUName
(
);
std
::
string
CPUStr
(
"generic"
);
TargetMachine
*
Target
=
TheTarget
->
createTargetMachine
(
Trip
,
CPUStr
,
FeaturesStr
,
Options
,
Reloc
::
PIC_
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录