From 594f220d58abf170733ba9c52f18cc121378957a Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed, 8 Oct 2025 04:24:44 +0200 Subject: [PATCH] Update OptTable due to llvm commit fdbd17d1fb0d5 SUBCOMMANDIDS_OFFSET is newly introduced in https://github.com/llvm/llvm-project/commit/fdbd17d1fb0d5 --- options.h | 2 +- options_compile.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/options.h b/options.h index 43e87f04..5d640d05 100644 --- a/options.h +++ b/options.h @@ -35,7 +35,7 @@ enum COMPILE_OPT_ID { #define PREFIX(NAME, VALUE) #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \ VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \ - VALUES) \ + VALUES, SUBCOMMANDIDS_OFFSET) \ OPT_COMPILE_##ID, #include "opencl_clang_options.inc" OPT_COMPILE_LAST_OPTION diff --git a/options_compile.cpp b/options_compile.cpp index a484e96e..22f2408e 100644 --- a/options_compile.cpp +++ b/options_compile.cpp @@ -39,7 +39,7 @@ static constexpr OptTable::Info ClangOptionsInfoTable[] = { #define PREFIX(NAME, VALUE) #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \ VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \ - VALUES) \ + VALUES, SUBCOMMANDIDS_OFFSET) \ {PREFIX, \ NAME, \ HELPTEXT, \ @@ -53,7 +53,8 @@ static constexpr OptTable::Info ClangOptionsInfoTable[] = { OPT_COMPILE_##GROUP, \ OPT_COMPILE_##ALIAS, \ ALIASARGS, \ - VALUES}, + VALUES, \ + SUBCOMMANDIDS_OFFSET}, #include "opencl_clang_options.inc" };