diff --git "a/LLVM Parallel Universe Project/\351\227\256\351\242\230\345\256\232\344\275\215\346\200\273\347\273\223/aarch\344\270\213-fstack-clash-protection\345\274\225\350\265\267\347\232\204-Wunused-command-line-argument\351\224\231\350\257\257.md" "b/LLVM Parallel Universe Project/\351\227\256\351\242\230\345\256\232\344\275\215\346\200\273\347\273\223/aarch\344\270\213-fstack-clash-protection\345\274\225\350\265\267\347\232\204-Wunused-command-line-argument\351\224\231\350\257\257.md" new file mode 100644 index 0000000000000000000000000000000000000000..fe6cde664015ef1ab1564a1f6b0fb24affa8810b --- /dev/null +++ "b/LLVM Parallel Universe Project/\351\227\256\351\242\230\345\256\232\344\275\215\346\200\273\347\273\223/aarch\344\270\213-fstack-clash-protection\345\274\225\350\265\267\347\232\204-Wunused-command-line-argument\351\224\231\350\257\257.md" @@ -0,0 +1,15 @@ +# 1、问题现象 + +`[ 95s] clang: error: argument unused during compilation: '-fstack-clash-protection' [-Werror,-Wunused-command-line-argument]` + +# 2、问题根因分析 + +[macOS arm64 support · Issue #183 · GrapheneOS/hardened_malloc (github.com)](https://github.com/GrapheneOS/hardened_malloc/issues/183) + +参考这个Issue可知,`The issue with -fstack-clash-protection is that it's not implemented on arm64 yet.`,即aarch64下`-fstack-clash-protection`特性还未在clang中实现。因此会出现报错。 + +# 3、问题修改建议 + +不必修改。 + +openEuler社区会默认将这个error降级为warning,实际情况中不影响构建。 \ No newline at end of file