There is a problem associated with passing options to backend C compiler
when it is clang (in case of gcc this works fine). Clang receives options
as one string being concatenation of all options and doesn't parse this.
chpl --ccflags "-mllvm -use-cfl-aa" --llvm test.chpl
and
chpl --ccflags -mllvm --ccflags -use-cfl-aa --llvm test.chpl
Give:
error: unknown argument: '-mllvm -use-cfl-aa'
Note that I have to use --llvm flag so that the backend compiler becomes
clang (it's gcc without this flag).
chpl --ccflags "-mllvm -use-cfl-aa" test.chpl
Gives:
gcc: error: unrecognized command line option ‘-mllvm’
Which is fine.
I checked both gcc and clang compiler errors just to make sure:
gcc "-mllv -use-cfl-aa"
gcc: error: unrecognized command line option ‘-mllv -use-cfl-aa’
clang "-mllv -use-cfl-aa"
clang: error: unknown argument: '-mllv -use-cfl-aa'
Is there any workaround?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs