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