[PATCH] D67200: Add -static-openmp driver option

Pirama Arumuga Nainar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 4 16:28:34 PDT 2019


pirama created this revision.
pirama added reviewers: Hahnfeld, danalbert, srhines, joerg.
Herald added a subscriber: guansong.
Herald added a reviewer: jdoerfert.
Herald added a project: clang.

This option forces linking with the static OpenMP host runtime (similar
to -static-libgcc and -static-libstdcxx).

Android's NDK will start the shared OpenMP runtime in addition to the static
libomp.  In this scenario, the linker will prefer to use the shared library by
default.  Add this option to enable linking with the static libomp.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67200

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/CommonArgs.cpp
  clang/lib/Driver/ToolChains/CommonArgs.h
  clang/lib/Driver/ToolChains/Gnu.cpp
  clang/test/Driver/fopenmp.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67200.218808.patch
Type: text/x-patch
Size: 6308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190904/e45347ed/attachment.bin>


More information about the cfe-commits mailing list