I've inherited a GitHub job I don't understand well and that has stopped compiling.
It creates a .a library for iOS.
The source consists of a set of modules, each declared thus:
export module x;
import y;
using namespace nam_y;
namespace nam_x
{
export void x() {
do something
}
}
compile.sh handles each module as below. This used to work, but now -fmodules-ts produces an error. Removing it produces many errors. I assume clang has been updated sometime this year? What syntax should I be using now?
This is the new error with fmodules-ts:
clang++: error: unknown argument: '-fmodules-ts'
$CXX -std=c++20 -fmodules-ts \
-target "$TARGET" \
-isysroot "$SDK_PATH" \
-fprebuilt-module-path="$BUILD_DIR" \
-x c++-module --precompile src/x.ixx -o build/x.pcm