LLVM-22 compatibility fixes. Partially backports https://github.com/ROCm/llvm-project/commit/0216fcfc5d2a4f3384873f6e9ac70198760d5a52 --- a/src/comgr-compiler.cpp +++ b/src/comgr-compiler.cpp @@ -1365,8 +1365,7 @@ } // By default clang driver will ask CC1 to leak memory. - Argv.push_back("-Xclang"); - Argv.push_back("-no-disable-free"); + Argv.push_back("-disable-free=false"); // Append options from AMD_COMGR_DRIVER_OPTIONS_APPEND environment variable. // Options are space-separated and appended after all other options.