mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 00:11:20 -06:00
Allow more than 1 include path per lib version
Better error handling when no path is defined (=No crash)
This commit is contained in:
@@ -185,7 +185,15 @@ function ClientOptionsHandler(fileSources) {
|
||||
_.each(listedVersions.split(':'), function (version) {
|
||||
libs[lib].versions[version] = {};
|
||||
libs[lib].versions[version].version = compilerProps("libs." + lib + '.versions.' + version + '.version');
|
||||
libs[lib].versions[version].path = compilerProps("libs." + lib + '.versions.' + version + '.path');
|
||||
libs[lib].versions[version].path = [];
|
||||
var listedIncludes = compilerProps("libs." + lib + '.versions.' + version + '.path');
|
||||
if (listedIncludes) {
|
||||
_.each(listedIncludes.split(':'), function(path) {
|
||||
libs[lib].versions[version].path.push(path);
|
||||
});
|
||||
} else {
|
||||
logger.warn("No paths found for " + lib + " version " + version);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
logger.warn("No versions found for " + lib + " library");
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
<div id="changelog">
|
||||
<small>To see smaller changes, you can <a href="https://github.com/mattgodbolt/compiler-explorer/commits/master" target="_blank" rel="noopener noreferrer">visit our commits log <sup><small class="glyphicon glyphicon-new-window" width="16px" height="16px" title="Opens in a new window"></small></sup></a></small>
|
||||
<h3>19th September 2017</h3>
|
||||
<ul>
|
||||
<li>New dropdown that allows for automatic inclusion of libraries to the compilation.</li>
|
||||
<li>Scrolling on the FontScale buttons now change the font automatically.</li>
|
||||
</ul>
|
||||
<h3>14th August 2017</h3>
|
||||
<ul>
|
||||
<li>Addition of GSL and gsl-lite to <pre>/opt/compiler-explorer/libs</pre></li>
|
||||
|
||||
+5
-2
@@ -424,8 +424,11 @@ define(function (require) {
|
||||
};
|
||||
_.each(this.availableLibs, function(lib) {
|
||||
_.each(lib.versions, function(version) {
|
||||
if (version.used)
|
||||
options.userArguments+= " -I" + version.path;
|
||||
if (version.used) {
|
||||
_.each(version.path, function(path) {
|
||||
options.userArguments += " -I" + path;
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
this.compilerService.expand(this.source).then(_.bind(function (expanded) {
|
||||
|
||||
Reference in New Issue
Block a user