cling icon indicating copy to clipboard operation
cling copied to clipboard

Argument parser swallows -Xclang arguments that start with -l

Open tgymnich opened this issue 4 years ago • 0 comments

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.

tgymnich avatar Mar 16 '21 17:03 tgymnich