diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-03 11:59:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-03 11:59:23 -0700 |
commit | 5958d3dc64ecfa6aafccc8805c319aeef2003f38 (patch) | |
tree | b9dda4c5c26006d5218b45985ade74e7f27c026a /src/compiler.js | |
parent | a07400c7d9b9c9e0f9c3cc8337c64d3ec3bc4ebf (diff) |
fix windows line endings
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js index 2863afda..e589646b 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -201,6 +201,9 @@ var raw = read(ll_file); if (FAKE_X86_FP80) { raw = raw.replace(/x86_fp80/g, 'double'); } +if (raw.search('\r\n') >= 0) { + raw = raw.replace(/\r\n/g, '\n'); // fix windows line endings +} var lines = raw.split('\n'); raw = null; |