why does O3DE build with -Werror when it has a grillion warnings
hahahahahahahaha
Werror + Wno-strict-aliasing
what a load of garbage
export CC=clang
export CXX=clang++
– The C compiler identification is GNU 14.3.0
– The CXX compiler identification is GNU 14.3.0
seems to ignore env 🥴
@kitten CMAKE_C_COMPILER works, but also apparently llvm-21/clang-21 broke pthreads
cmake -B build/linux -S . -G "Ninja Multi-Config" -DLY_UNITY_BUILD=OFF -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_C_COMPILER=clang-20 -DCMAKE_CXX_COMPILER=clang++-20
Code/Framework/AzCore/AzCore/DOM/DomValue.cpp:303:16: error: first argument in call to 'memcpy' is a pointer to non-trivially copyable type 'AZ::Dom::Value' [-Werror,-Wnontrivial-memcall]
303 | memcpy(this, &other, sizeof(Value));
Werror is very smart choice
this project is backed by the linux foundation btw
it doesn’t compile on linux
ok its removing -Werror, these memcpys are everywhere.
could add -Wno-nontrivial-memcall though
@ada just need to wait for c++26's trivial relocatability to fix this warning 😊