From 77c1914b592b4acbf1f30a0d8edffd80f9a6f83f Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Wed, 3 Apr 2019 13:53:10 +0300 Subject: [PATCH] Fix test with space for Windows --- backend.native/tests/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index 31eb5fe19d3..8b27c27d987 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -2895,16 +2895,17 @@ task inline_defaultArgs_linkTest(type: LinkKonanTest) { } def generateWithSpaceDefFile() { - def mapOption = "--Map " + def mapOption = "--Map \"${buildDir}/cutom map.map\"" if (isAppleTarget(project)) { - mapOption = "-map " + mapOption = "-map \"${buildDir}/cutom map.map\"" } else if (isWindowsTarget(project)) { - mapOption = "-Wl,--Map," + mapOption = "\"-Wl,--Map,${buildDir}/cutom map.map\"" } + def file = new File("${buildDir}/withSpaces.def") file.write """ headers = stdio.h "${projectDir}/interop/basics/custom headers/custom.h" -linkerOpts = $mapOption "${buildDir}/cutom map.map" +linkerOpts = $mapOption --- int customCompare(const char* str1, const char* str2) {