Revision: 14374
Author: [email protected]
Date: Mon Apr 22 05:49:08 2013
Log: Make Clang plugins directory configurable for GCMole.
[email protected]
Review URL: https://codereview.chromium.org/13956027
http://code.google.com/p/v8/source/detail?r=14374
Modified:
/branches/bleeding_edge/tools/gcmole/gcmole.lua
=======================================
--- /branches/bleeding_edge/tools/gcmole/gcmole.lua Fri Apr 19 05:46:32 2013
+++ /branches/bleeding_edge/tools/gcmole/gcmole.lua Mon Apr 22 05:49:08 2013
@@ -80,11 +80,16 @@
-- Clang invocation
local CLANG_BIN = os.getenv "CLANG_BIN"
+local CLANG_PLUGINS = os.getenv "CLANG_PLUGINS"
if not CLANG_BIN or CLANG_BIN == "" then
error "CLANG_BIN not set"
end
+if not CLANG_PLUGINS or CLANG_PLUGINS == "" then
+ CLANG_PLUGINS = DIR
+end
+
local function MakeClangCommandLine(plugin, plugin_args, triple,
arch_define)
if plugin_args then
for i = 1, #plugin_args do
@@ -92,7 +97,7 @@
end
plugin_args = " " .. table.concat(plugin_args, " ")
end
- return CLANG_BIN .. "/clang -cc1 -load " .. DIR .. "/libgcmole.so"
+ return CLANG_BIN .. "/clang -cc1 -load " ..
CLANG_PLUGINS .. "/libgcmole.so"
.. " -plugin " .. plugin
.. (plugin_args or "")
.. " -triple " .. triple
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.