diff options
Diffstat (limited to 'examples/PrintFunctionNames/README.txt')
-rw-r--r-- | examples/PrintFunctionNames/README.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/PrintFunctionNames/README.txt b/examples/PrintFunctionNames/README.txt index 267865c903519..4c284cd170d5c 100644 --- a/examples/PrintFunctionNames/README.txt +++ b/examples/PrintFunctionNames/README.txt @@ -1,10 +1,12 @@ This is a simple example demonstrating how to use clang's facility for providing AST consumers using a plugin. -You will probably need to build clang so that it exports all symbols (disable -TOOL_NO_EXPORT in the tools/clang Makefile). +Build the plugin by running `make` in this directory. Once the plugin is built, you can run it using: -- -$ clang -cc1 -load path/to/PrintFunctionNames.so -plugin print-fns some-input-file.c --- +Linux: +$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns some-input-file.c + +Mac: +$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns some-input-file.c |