ソースを参照

HPCC-13617 Enable ECL code coverage generation with 'ecl run' command.

Add -feclcc-linkOption-x= to eclccserver to enable coverage
generation.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
Attila Vamos 10 年 前
コミット
e84d2ad04a
1 ファイル変更2 行追加0 行削除
  1. 2 0
      ecl/eclccserver/eclccserver.cpp

+ 2 - 0
ecl/eclccserver/eclccserver.cpp

@@ -274,6 +274,8 @@ class EclccCompileThread : public CInterface, implements IPooledThread, implemen
             }
             else if (stricmp(optName, "compileOption") == 0)
                 eclccCmd.appendf(" -Wc,%s", value);
+            else if (stricmp(optName, "linkOption") == 0)
+                eclccCmd.appendf(" -Wl,%s", value);
             else if (stricmp(optName, "includeLibraryPath") == 0)
                 eclccCmd.appendf(" -I%s", value);
             else if (stricmp(optName, "libraryPath") == 0)