@@ -153,8 +153,18 @@ protected String getCompilerCommand(String languageId) {
153
153
// End of Bug fix for CDT 8.1 fixed in 8.2
154
154
if (languageId .equals ("org.eclipse.cdt.core.gcc" )) {
155
155
compilerCommand = envManager .getVariable (ArduinoConst .ENV_KEY_recipe_c_o_pattern , confDesc , true ).getValue ().replace (" -o " , "" );
156
+ compilerCommand = compilerCommand + " "
157
+ + envManager .getVariable (ArduinoConst .ENV_KEY_JANTJE_ADDITIONAL_COMPILE_OPTIONS , confDesc , true ).getValue ();
158
+ compilerCommand = compilerCommand + " "
159
+ + envManager .getVariable (ArduinoConst .ENV_KEY_JANTJE_ADDITIONAL_C_COMPILE_OPTIONS , confDesc , true ).getValue ();
160
+ compilerCommand = compilerCommand + " -D__IN_ECLIPSE__=1" ;
156
161
} else if (languageId .equals ("org.eclipse.cdt.core.g++" )) {
157
162
compilerCommand = envManager .getVariable (ArduinoConst .ENV_KEY_recipe_cpp_o_pattern , confDesc , true ).getValue ().replace (" -o " , "" );
163
+ compilerCommand = compilerCommand + " "
164
+ + envManager .getVariable (ArduinoConst .ENV_KEY_JANTJE_ADDITIONAL_COMPILE_OPTIONS , confDesc , true ).getValue ();
165
+ compilerCommand = compilerCommand + " "
166
+ + envManager .getVariable (ArduinoConst .ENV_KEY_JANTJE_ADDITIONAL_CPP_COMPILE_OPTIONS , confDesc , true ).getValue ();
167
+ compilerCommand = compilerCommand + " -D__IN_ECLIPSE__=1" ;
158
168
} else {
159
169
ManagedBuilderCorePlugin .error ("Unable to find compiler command for language " + languageId + " in toolchain=" + getToolchainId ()); //$NON-NLS-1$
160
170
}
0 commit comments