aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/win32.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/win32.js')
-rw-r--r--lib/compilers/win32.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/compilers/win32.js b/lib/compilers/win32.js
index 5b9616cec..6d4e9f97a 100644
--- a/lib/compilers/win32.js
+++ b/lib/compilers/win32.js
@@ -22,13 +22,13 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-"use strict";
+'use strict';
const BaseCompiler = require('../base-compiler'),
temp = require('temp'),
path = require('path'),
_ = require('underscore'),
- PELabelReconstructor = require("../pe32-support").labelReconstructor;
+ PELabelReconstructor = require('../pe32-support').labelReconstructor;
class Win32Compiler extends BaseCompiler {
newTempDir() {
@@ -43,18 +43,18 @@ class Win32Compiler extends BaseCompiler {
}
getExecutableFilename(dirPath, outputFilebase) {
- return this.getOutputFilename(dirPath, outputFilebase) + ".exe";
+ return this.getOutputFilename(dirPath, outputFilebase) + '.exe';
}
async objdump(outputFilename, result, maxSize, intelAsm) {
const dirPath = path.dirname(outputFilename);
- outputFilename = this.getExecutableFilename(path.dirname(outputFilename), "output");
+ outputFilename = this.getExecutableFilename(path.dirname(outputFilename), 'output');
- let args = ["-d", outputFilename];
- if (intelAsm) args = args.concat(["-M", "intel"]);
+ let args = ['-d', outputFilename];
+ if (intelAsm) args = args.concat(['-M', 'intel']);
const objResult = await this.exec(this.compiler.objdumper, args, {maxOutput: 0, customCwd: dirPath});
if (objResult.code !== 0) {
- result.asm = "<No output: objdump returned " + objResult.code + ">";
+ result.asm = '<No output: objdump returned ' + objResult.code + '>';
} else {
result.asm = objResult.stdout;
}
@@ -63,7 +63,7 @@ class Win32Compiler extends BaseCompiler {
}
getSharedLibraryPathsAsArguments(libraries) {
- const libPathFlag = this.compiler.libpathFlag || "/LIBPATH:";
+ const libPathFlag = this.compiler.libpathFlag || '/LIBPATH:';
return this.getSharedLibraryPaths(libraries).map(path => libPathFlag + path);
}
@@ -94,7 +94,7 @@ class Win32Compiler extends BaseCompiler {
backendOptions = backendOptions || {};
if (this.compiler.options) {
- options = options.concat(this.compiler.options.split(" "));
+ options = options.concat(this.compiler.options.split(' '));
}
if (this.compiler.supportsOptOutput && backendOptions.produceOptInfo) {
@@ -108,7 +108,7 @@ class Win32Compiler extends BaseCompiler {
let staticlibLinks = [];
if (filters.binary) {
- preLink = ["/link"];
+ preLink = ['/link'];
libLinks = this.getSharedLibraryLinks(libraries);
libPaths = this.getSharedLibraryPathsAsArguments(libraries);
staticlibLinks = this.getStaticLibraryLinks(libraries);
@@ -124,8 +124,8 @@ class Win32Compiler extends BaseCompiler {
const mapFilename = outputFilename + '.map';
filters.preProcessBinaryAsmLines = (asmLines) => {
- const reconstructor = new PELabelReconstructor(asmLines, mapFilename, false, "vs");
- reconstructor.run("output.s.obj");
+ const reconstructor = new PELabelReconstructor(asmLines, mapFilename, false, 'vs');
+ reconstructor.run('output.s.obj');
return reconstructor.asmLines;
};
@@ -133,10 +133,10 @@ class Win32Compiler extends BaseCompiler {
return [
'/nologo',
'/FA',
- '/Fa' + this.filename(outputFilename.replace(/\.exe$/, "")),
- '/Fo' + this.filename(outputFilename.replace(/\.exe$/, "") + '.obj'),
+ '/Fa' + this.filename(outputFilename.replace(/\.exe$/, '')),
+ '/Fo' + this.filename(outputFilename.replace(/\.exe$/, '') + '.obj'),
'/Fm' + this.filename(mapFilename),
- '/Fe' + this.filename(this.getExecutableFilename(path.dirname(outputFilename), "output"))
+ '/Fe' + this.filename(this.getExecutableFilename(path.dirname(outputFilename), 'output')),
];
} else {
return [
@@ -144,7 +144,7 @@ class Win32Compiler extends BaseCompiler {
'/FA',
'/c',
'/Fa' + this.filename(outputFilename),
- '/Fo' + this.filename(outputFilename + '.obj')
+ '/Fo' + this.filename(outputFilename + '.obj'),
];
}
}