From f064ba48d375dd54275312b5e2bf141fddc3f270 Mon Sep 17 00:00:00 2001 From: gwl Date: Wed, 1 Nov 2023 20:22:20 +0800 Subject: [PATCH] [drivver]-x bsc and -std=bsc --- src/mapleall/maple_driver/include/driver_options.h | 2 ++ src/mapleall/maple_driver/src/driver_options.cpp | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mapleall/maple_driver/include/driver_options.h b/src/mapleall/maple_driver/include/driver_options.h index ad5d8708de..b347616b83 100644 --- a/src/mapleall/maple_driver/include/driver_options.h +++ b/src/mapleall/maple_driver/include/driver_options.h @@ -1888,6 +1888,7 @@ extern maplecl::Option fPIC; extern maplecl::Option ignoreUnsupOpt; extern maplecl::Option exportMpltInline; extern maplecl::Option importMpltInline; +extern maplecl::Option oStdBsc; extern maplecl::Option bsc; /* ##################### STRING Options ############################################################### */ @@ -2094,6 +2095,7 @@ extern maplecl::Option rootPath; extern maplecl::Option aggressiveTlsWarmupFunction; extern maplecl::Option oMQ; extern maplecl::Option inlineMpltDir; +extern maplecl::Option oX; /* ##################### DIGITAL Options ############################################################### */ diff --git a/src/mapleall/maple_driver/src/driver_options.cpp b/src/mapleall/maple_driver/src/driver_options.cpp index 3aee6d8e8e..eb4ecbcff1 100644 --- a/src/mapleall/maple_driver/src/driver_options.cpp +++ b/src/mapleall/maple_driver/src/driver_options.cpp @@ -391,6 +391,10 @@ maplecl::Option oTrigraphs({"-trigraphs"}, " -trigraphs \t-trigraphs Support ISO C trigraphs.\n", {driverCategory, clangCategory}, kOptFront, maplecl::kHide); +maplecl::Option oStdBsc({"-std=bsc"}, + " -std=bsc \tConform to the bsc C++ standard.\n", + {driverCategory, clangCategory}); + maplecl::Option oStd03({"-std=c++03"}, " -std=c++03 \tConform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum.\n", {driverCategory, clangCategory, unSupCategory}, maplecl::kHide); @@ -912,9 +916,13 @@ maplecl::Option oA({"-A"}, {driverCategory, clangCategory}, kOptFront, maplecl::kJoinedValue); maplecl::Option inlineMpltDir({"-finline-mplt-dir="}, - " -finline-mplt-dir= \tSpecify the inline mplt directory for exporting and importing.\n", + " -finline-mplt-dir= \tSpecify the inline mplt directory for exporting and importing.\n", {driverCategory, hir2mplCategory, mpl2mplCategory}, kOptCommon | kOptOptimization | kOptMaple, maplecl::Init("")); +maplecl::Option oX({"-x"}, + " -x \tSpecify to compile using Bi Sheng C syntax.\n", + {driverCategory, clangCategory}, kOptFront | kOptMaple); + /* ##################### DIGITAL Options ############################################################### */ maplecl::Option helpLevel({"--level"}, -- Gitee