diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-08 15:31:15 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-08 15:31:15 (GMT) |
commit | 56dbbded838fc6f8e95af96bbbc20519e8a98089 (patch) | |
tree | e3fd01c37ebfc874ab2b82453562b3bdd61f274a /unix/tcl.m4 | |
parent | f5e6fef4338a536102ec83ccbbed76552033e0d8 (diff) | |
download | tcl-56dbbded838fc6f8e95af96bbbc20519e8a98089.zip tcl-56dbbded838fc6f8e95af96bbbc20519e8a98089.tar.gz tcl-56dbbded838fc6f8e95af96bbbc20519e8a98089.tar.bz2 |
Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index c9d9e3a..01ccead 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -958,12 +958,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ CFLAGS_DEBUG=-g AS_IF([test "$GCC" = yes], [ CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith" + CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -finput-charset=UTF-8" case "${CC}" in *++|*++-*) ;; *) - CFLAGS_WARNING="${CFLAGS_WARNING} -Wc++-compat -Wdeclaration-after-statement" + CFLAGS_WARNING="${CFLAGS_WARNING} -Wc++-compat -fextended-identifiers -Wdeclaration-after-statement" ;; esac |