From 5a26f2970f5bfbce3b30dc457966a0c658ac2ea0 Mon Sep 17 00:00:00 2001 From: PerfectCarl Date: Sun, 8 Jun 2014 12:08:38 +0200 Subject: [PATCH] Write \\ in the objects file on Windows Maybe there should be something that would make the difference between windows and cross compiling for windows. What do you think? --- .../main/java/org/robovm/compiler/util/ToolchainUtil.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/src/main/java/org/robovm/compiler/util/ToolchainUtil.java b/compiler/src/main/java/org/robovm/compiler/util/ToolchainUtil.java index b9e2c4a09..7a1ce523c 100644 --- a/compiler/src/main/java/org/robovm/compiler/util/ToolchainUtil.java +++ b/compiler/src/main/java/org/robovm/compiler/util/ToolchainUtil.java @@ -135,7 +135,10 @@ public static void link(Config config, List args, List objectFiles objectsOut = new BufferedOutputStream(new FileOutputStream(objectsFile)); for (File f : objectFiles) { objectsOut.write('"'); - objectsOut.write(f.getAbsolutePath().getBytes()); + String path = f.getAbsolutePath(); + if( config.getOs() == OS.windows) + path = path.replace("\\", "\\\\"); + objectsOut.write(path.getBytes()); objectsOut.write('"'); objectsOut.write('\n'); }