Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1768 from mppf/fix-extern-block-no-clang-included…
…-runtime Bug fix for extern block w/o clang-included runtime The --llvm option to compileline changes CHPL_TARGET_PLATFORM in order to use clang-included and prevent ABI issues when linking in the runtime. However, when I originally added that flag I neglected to remember that runClang runs both as an initial step in --llvm compiles but also as a parsing step with extern { } blocks even without --llvm. When it's just parsing the extern blocks, we shouldn't be changing the CHPL_TARGET_PLATFORM at all. Now we just leave out --llvm from the compileline flags if just_parse_filename is set. By removing the --llvm option to compileline if we're only parsing extern blocks (and not compiling with the LLVM backend), we remove the check that the runtime has been built with clang-included in that case. Tested with test/extern with and without --llvm and with no clang-included runtime without --llvm. Reviewed by @thomasvandoren (cherry picked from commit e3a84a6)
- Loading branch information