-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[BUILD] Fix unicode build issue. #135315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUILD] Fix unicode build issue. #135315
Conversation
@llvm/pr-subscribers-llvm-support Author: Harrison Hao (harrisonGPU) ChangesFix unicode build fail issue:
Full diff: https://github.com/llvm/llvm-project/pull/135315.diff 1 Files Affected:
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index d3772896069cc..d265d864228ca 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -232,7 +232,7 @@
// Only enabled for clang:
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99587
-// GCC may produce "warning: ‘retain’ attribute ignored" (despite
+// GCC may produce "warning: 'retain' attribute ignored" (despite
// __has_attribute(retain) being 1).
#if defined(__clang__) && __has_attribute(retain)
#define LLVM_ATTRIBUTE_RETAIN __attribute__((__retain__))
|
This is #64668. |
Thanks. :-) |
I see we have other non-ASCII source files in LLVM. For example just in
I guess the Windows error depends on the exact non-ASCII characters that are used? |
I'm not sure. I just encountered this issue — even after setting 'treat warnings as errors' to false, the build still failed. So I fixed the build issue. |
Fix unicode build fail issue: ``` C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss ...\llvm-project\llvm\include\llvm\Support\Compiler.h ```
Fix unicode build fail issue: