HomePhabricator

[Driver] Add -static-openmp driver option

Description

[Driver] Add -static-openmp driver option

Summary:
For Gnu, FreeBSD and NetBSD, 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.

Reviewers: Hahnfeld, danalbert, srhines, joerg, jdoerfert

Subscribers: guansong, cfe-commits

Tags: #clang

Fixes https://github.com/android-ndk/ndk/issues/1028

Differential Revision: https://reviews.llvm.org/D67200

Details

Committed
piramaSep 9 2019, 11:31 AM
Differential Revision
D67200: Add -static-openmp driver option
Parents
rL371436: AMDGPU/GlobalISel: Select llvm.amdgcn.class
Branches
Unknown
Tags
Unknown