Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
Panda
TinyCC
提交
24d35fae
提交
24d35fae
编辑于
6月 29, 2021
作者:
Arthur Williams
浏览文件
Use `grep -q` instead of `grep --quiet` to be more portable
上级
39d586d7
变更
1
Hide whitespace changes
Inline
Side-by-side
Makefile
浏览文件 @
24d35fae
...
...
@@ -224,7 +224,7 @@ endif
TCC_GIT_HASH
=
$(
shell
git rev-parse
>
/dev/null 2>&1
&&
git rev-parse
--short
HEAD
||
echo
no
)
ifneq
($(TCC_GIT_HASH),no)
MODIFIED
=
$(
shell
git diff |
grep
-
-quiet
+++
&&
echo
"modified "
)
MODIFIED
=
$(
shell
git diff |
grep
-
q
+++
&&
echo
"modified "
)
$(X)tcc.o
:
DEFINES += -DTCC_GIT_HASH="
\"
$(MODIFIED)$(TCC_GIT_HASH)
\"
"
endif
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录