if (targetId == null) {
return "";
}
- String projectType = NativeCoreConfigurationManager.getProjectType(config);
PluginManager pm = PluginManager.getInstance();
- String path = pm.getDefaultGCCToolchainFileName(targetId, projectType);
+ String path = pm.getDefaultGCCToolchainFileName(targetId);
return path;
} catch (Exception e) {
logger.error("Failed to get platform gcc path", e);
if (targetId == null) {
return "";
}
- String projectType = NativeCoreConfigurationManager.getProjectType(config);
PluginManager pm = PluginManager.getInstance();
- String path = pm.getDefaultGCCToolchainPath(targetId, projectType);
+ String path = pm.getDefaultGCCToolchainPath(targetId);
return path;
} catch (Exception e) {
logger.error("Failed to get platform gcc path", e);
for (Toolchain tc : pm.getToolchainList()) {
String name = tc.getName().toLowerCase();
String arch = tc.getArchitecture();
- String type = tc.getProjectType();
- if (name.startsWith(namePrefix) && isX86Arch(arch) && type.equals(appType)) {
+ //String type = tc.getProjectType();
+ //if (name.startsWith(namePrefix) && isX86Arch(arch) && type.equals(appType)) {
+ if (name.startsWith(namePrefix) && isX86Arch(arch)) {
String version = name.substring(namePrefix.length());
if (latestVersion.isEmpty()) {
latestVersion = version;
for (Toolchain tc : pm.getToolchainList()) {
String name = tc.getName().toLowerCase();
String arch = tc.getArchitecture();
- String type = tc.getProjectType();
- if (name.startsWith(namePrefix) && isArmArch(arch) && type.equals(appType)) {
+ //String type = tc.getProjectType();
+ //if (name.startsWith(namePrefix) && isArmArch(arch) && type.equals(appType)) {
+ if (name.startsWith(namePrefix) && isArmArch(arch)) {
String version = name.substring(namePrefix.length());
if (latestVersion.isEmpty()) {
latestVersion = version;
// resolve "PLATFORM_DEFAULT_GCC_PATH" inner (SBI) macro
Map<String, String> macros = new HashMap<String, String>();
- String defaultGccPath = pluginMgr.getDefaultGCCToolchainPath(targetId, tc.getProjectType());
+ String defaultGccPath = pluginMgr.getDefaultGCCToolchainPath(targetId);
macros.put(NativeCoreConfigurationManager.MACRO_PLATFORM_DEFAULT_GCC_PATH, defaultGccPath);
- String defaultGccFileName = pluginMgr.getDefaultGCCToolchainFileName(targetId, tc.getProjectType());
+ String defaultGccFileName = pluginMgr.getDefaultGCCToolchainFileName(targetId);
if(defaultGccFileName != null && !defaultGccFileName.isEmpty()){
String defaultGccName = new File(defaultGccFileName).getName();
if(OSChecker.isWindows() && defaultGccName.endsWith(".exe")) {