cling
cling copied to clipboard
Argument parser swallows -Xclang arguments that start with -l
I tried loading a clang plugin with cling:
cling -Xclang -load -Xclang ~/Developer/Enzyme/enzyme/build/Enzyme/ClangEnzyme-11.dylib
which resulted in:
error: unknown argument: '-Xclang'
input_line_3:1:10: fatal error: 'oad' file not found
#include "oad"
^~~~~
****************** CLING ******************
* Type C++ code and press enter to run it *
* Type .q to exit *
*******************************************
[cling]$
I suspect, that the argument parser might have interpreted the first part of -load as -l.