История изменений
Исправление Werenter, (текущая версия) :
clang 20 в Termux
time clang++ \ ~/Trash
-g3 \
-fsanitize=address \
-flto \
-Wall \
-Wextra \
-Ofast \
-std=c++26 \
-fmodules \
main.cc
clang++: warning: argument '-Ofast' is deprecated; use '-O3 -ffast-math' for the same behavior, or '-O3' to enable only conforming optimizations [-Wdeprecated-ofast]
main.cc:1:1: error: import of module 'std' imported non C++20 importable modules
1 | import std;
| ^
main.cc:4:8: error: no member named 'println' in namespace 'std'
4 | std::println("Hello World!");
| ~~~~~^
2 errors generated.
clang++ -g3 -fsanitize=address -flto -Wall -Wextra -Ofast -std=c++26 -fmodule 122.50s user 25.33s system 95% cpu 2:34.83 total
Исходная версия Werenter, :
clang в Termux
time clang++ \ ~/Trash
-g3 \
-fsanitize=address \
-flto \
-Wall \
-Wextra \
-Ofast \
-std=c++26 \
-fmodules \
main.cc
clang++: warning: argument '-Ofast' is deprecated; use '-O3 -ffast-math' for the same behavior, or '-O3' to enable only conforming optimizations [-Wdeprecated-ofast]
main.cc:1:1: error: import of module 'std' imported non C++20 importable modules
1 | import std;
| ^
main.cc:4:8: error: no member named 'println' in namespace 'std'
4 | std::println("Hello World!");
| ~~~~~^
2 errors generated.
clang++ -g3 -fsanitize=address -flto -Wall -Wextra -Ofast -std=c++26 -fmodule 122.50s user 25.33s system 95% cpu 2:34.83 total