Fix test for different linkers. (#2844)
This commit is contained in:
@@ -2895,10 +2895,16 @@ task inline_defaultArgs_linkTest(type: LinkKonanTest) {
|
||||
}
|
||||
|
||||
def generateWithSpaceDefFile() {
|
||||
def mapOption = "--Map "
|
||||
if (isAppleTarget(project)) {
|
||||
mapOption = "-map "
|
||||
} else if (isWindowsTarget(project)) {
|
||||
mapOption = "-Wl,--Map,"
|
||||
}
|
||||
def file = new File("${buildDir}/withSpaces.def")
|
||||
file.write """
|
||||
headers = stdio.h "${projectDir}/interop/basics/custom headers/custom.h"
|
||||
linkerOpts = -map "${buildDir}/cutom map.map"
|
||||
linkerOpts = $mapOption "${buildDir}/cutom map.map"
|
||||
---
|
||||
|
||||
int customCompare(const char* str1, const char* str2) {
|
||||
|
||||
Reference in New Issue
Block a user