diff --git a/docs/documentation/building_a_simulation/Making-the-Simulation.md b/docs/documentation/building_a_simulation/Making-the-Simulation.md index 9586cc44..28985c7c 100644 --- a/docs/documentation/building_a_simulation/Making-the-Simulation.md +++ b/docs/documentation/building_a_simulation/Making-the-Simulation.md @@ -91,12 +91,12 @@ Edit a file called "S_overrides.mk". Append to the TRICK_EXCLUDE variable. TRICK_EXCLUDE += /path/to/exclude:/another/path/to/exclude ``` -### Example how to set a C++ standard for ICG and compilation +### Example how to set a C++ standard for ICG parsing -Edit a file called "S_overrides.mk". Append to the TRICK_CXXFLAGS variable. +Edit a file called "S_overrides.mk". Append to the TRICK_ICGFLAGS variable. ``` -TRICK_CXXFLAGS += -std=c++11 +TRICK_ICGFLAGS += -icg-std=c++11 ``` Valid options are c++11, c++14, c++17, or c++20. ICG will parse to c++17 by default, or the newest supported version if c++17 is not availible. diff --git a/trick_source/codegen/Interface_Code_Gen/main.cpp b/trick_source/codegen/Interface_Code_Gen/main.cpp index 0c431059..b1ff43e4 100644 --- a/trick_source/codegen/Interface_Code_Gen/main.cpp +++ b/trick_source/codegen/Interface_Code_Gen/main.cpp @@ -38,7 +38,7 @@ llvm::cl::opt units_truth_is_scary("units-truth-is-scary", llvm::cl::desc( llvm::cl::opt sim_services_flag("sim_services", llvm::cl::desc("Gernerate io_src for Trick core headers")); llvm::cl::opt force("force", llvm::cl::desc("Force all io_src files to be generated")); llvm::cl::opt attr_version("v", llvm::cl::desc("Select version of attributes to produce. 10 and 13 are valid"), llvm::cl::init(10)); -llvm::cl::opt standard_version("std", llvm::cl::desc("Set the C++ standard to use when parsing. c++11, c++14, c++17, and c++20 are valid. Default is c++17 or the newest supported by your LLVM version."), llvm::cl::init(""), llvm::cl::ZeroOrMore); +llvm::cl::opt standard_version("icg-std", llvm::cl::desc("Set the C++ standard to use when parsing. c++11, c++14, c++17, and c++20 are valid. Default is c++17 or the newest supported by your LLVM version."), llvm::cl::init(""), llvm::cl::ZeroOrMore); llvm::cl::opt debug_level("d", llvm::cl::desc("Set debug level"), llvm::cl::init(0), llvm::cl::ZeroOrMore); llvm::cl::opt create_map("m", llvm::cl::desc("Create map files"), llvm::cl::init(false)); llvm::cl::opt output_dir("o", llvm::cl::desc("Output directory"));