| Index: tools/gcmole/gcmole.lua
|
| diff --git a/tools/gcmole/gcmole.lua b/tools/gcmole/gcmole.lua
|
| index 706f4de86fbc30a42c3dce8e6185cd022c3c68d8..833d4c1b08a7dc8252ca2196b5ea496385137e71 100644
|
| --- a/tools/gcmole/gcmole.lua
|
| +++ b/tools/gcmole/gcmole.lua
|
| @@ -93,14 +93,16 @@ end
|
| local function MakeClangCommandLine(plugin, plugin_args, triple, arch_define)
|
| if plugin_args then
|
| for i = 1, #plugin_args do
|
| - plugin_args[i] = "-plugin-arg-" .. plugin .. " " .. plugin_args[i]
|
| + plugin_args[i] = "-Xclang -plugin-arg-" .. plugin
|
| + .. " -Xclang " .. plugin_args[i]
|
| end
|
| plugin_args = " " .. table.concat(plugin_args, " ")
|
| end
|
| - return CLANG_BIN .. "/clang -cc1 -load " .. CLANG_PLUGINS .. "/libgcmole.so"
|
| - .. " -plugin " .. plugin
|
| + return CLANG_BIN .. "/clang++ -c "
|
| + .. " -Xclang -load -Xclang " .. CLANG_PLUGINS .. "/libgcmole.so"
|
| + .. " -Xclang -plugin -Xclang " .. plugin
|
| .. (plugin_args or "")
|
| - .. " -triple " .. triple
|
| + .. " -Xclang -triple -Xclang " .. triple
|
| .. " -D" .. arch_define
|
| .. " -DENABLE_DEBUGGER_SUPPORT"
|
| .. " -DV8_I18N_SUPPORT"
|
|
|