...
- (Optional) If you want to specify the location of the custom compiler definition files, choose Parasoft> Preferences, select Parasoft> Configurations, then enable Custom directories> Custom compilers and enter the location in the appropriate field .
By default, the custom compiler definition files are saved in
<user_local_settings_dir>\<app_data_dir>\Xtest\.plugins.vs\com.parasoft.xtest.check-ers.vstudio.core.cpp\compilers.
- Choose Parasoft> Wizards> Create Custom Compiler.
The New Custom Compiler dialog will open.
Select Add custom compiler, then click Next.
In the next page, specify the following custom compiler settings:
Compiler name: The unique name that will be used to identify this custom compiler in the C++test GUI.
Compiler family: The family of compilers which corresponds to your actual compiler (if you are not sure, choose one of the GCC compilers).
Compiler identifier: The unique name that will be used to identify the directory in which its configuration settings are stored. This name should conform to all limitations that your OS file system imposes on directory names.
C compiler executable: The C compiler executable.
C++ compiler executable: The C++ compiler executable.
Linker executable: The linker executable. The compiler and linker settings must be consistent.
(Optional) If you want to see the paths to configuration files created for your new custom compiler, click Next.
Click Finish.
...
Any custom compiler definitions that are available in the designated Custom Compilers location will be loaded automatically upon startup, and available for use. Thus, one way to "import" definitions is to save them in the Custom Compiler location. By default, the custom compiler definition files are saved in<userin
...
To change this location, choose Parasoft> Preferences, select Parasoft> Configurations, then enable Custom directories> Custom compilers and enter the location in the appropriate field .
To import a custom compiler definition that is stored in another location:
- Choose Parasoft> Wizards> Create Custom Compiler.
The New Custom Compiler dialog will open.
- Select Import custom compiler, then click Next.
- In the Base compiler definition directory field, specify the directory which contains the compiler definition files (described in the previous section) that you want to import.
- Ensure that the name of the imported compiler directory does not overlap with the name of any existing configurations.
- Click Finish.
...
- Load (or create) the C++test project in the GUI.
- For details, see Creating a Project.
In the project tree, right-click the project node, then choose
Parasoft>Properties from the shortcut menu.
- In the Properties panel, expand the Parasoft> C++test category and select Build Settings.
- From the Compiler settings> Family box, select the name of your custom compiler.
- Add the library that you built with the custom compiler to the linker options by changing the Linker options. For example, you might change it from
${cpptest:original_options}
to${cpptest:original_options} "C:\cygwin\home\<user_name>\Custom_Compiler\source\target\libcpptestruntime.a"
- Click Apply, then OK.
Tip |
---|
Tips
|