Skip to content

Commit

Permalink
support literal C# without explicit EDGE_USE_CORECLR env variable whe…
Browse files Browse the repository at this point in the history
…n Mono/desktopCLR is absent
  • Loading branch information
tjanczuk committed Dec 22, 2015
1 parent 64b4158 commit 9737c98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ else {
if (process.env.EDGE_DEBUG) {
console.log('Load edge native library from: ' + edgeNative);
}
if (edgeNative.match(/edge_coreclr\.node$/i)) {
// Propagate the choice between desktop and coreclr to edge-cs; this is used in deciding
// how to compile literal C# at https://github.com/tjanczuk/edge-cs/blob/master/lib/edge-cs.js
process.env.EDGE_USE_CORECLR = 1;
}
edge = require(edgeNative);

exports.func = function(language, options) {
Expand Down

0 comments on commit 9737c98

Please sign in to comment.