Avoiding hardcoded build options
未关闭
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 74
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently in order to build on Ubuntu Linux (18.04) using either system g++7 or source compiled clang++7 I had to apply following patch:
CXX=/usr/bin/g++ make
diff --git a/common.gypi b/common.gypi
index 803f217..6ae5c84 100644
--- a/common.gypi
+++ b/common.gypi
@@ -38,11 +38,8 @@
'NDEBUG'
],
'cflags': [
- '-flto'
],
'ldflags': [
- '-flto',
- '-fuse-ld=<(module_root_dir)/mason_packages/.link/bin/ld'
],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS!': [
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
检查 common.gypi 以及 issue 中显示的构建调用,然后使用系统的 g++7 或从源代码构建的 clang++7 重现 Ubuntu 构建。完成标准是:无需手动从 common.gypi 中删除硬编码的 -flto 标志和 Mason 链接器路径,项目即可构建成功。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, node.js
- 领域
- build-system
- Issue 类型
- 重构
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100