File tree 3 files changed +26
-0
lines changed
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -1337,6 +1337,13 @@ AC_ARG_WITH(default-sysroot,
1337
1337
AC_DEFINE_UNQUOTED ( DEFAULT_SYSROOT ,"$withval" ,
1338
1338
[ Default <path> to all compiler invocations for --sysroot=<path>.] )
1339
1339
1340
+ AC_ARG_WITH ( clang-default-openmp-runtime ,
1341
+ AS_HELP_STRING ( [ --with-clang-default-openmp-runtime] ,
1342
+ [ The default OpenMP runtime for Clang.] ) ,,
1343
+ withval="" )
1344
+ AC_DEFINE_UNQUOTED ( CLANG_DEFAULT_OPENMP_RUNTIME ,"$withval" ,
1345
+ [ Default OpenMP runtime used by -fopenmp.] )
1346
+
1340
1347
dnl Allow linking of LLVM with GPLv3 binutils code.
1341
1348
AC_ARG_WITH ( binutils-include ,
1342
1349
AS_HELP_STRING ( [ --with-binutils-include] ,
Original file line number Diff line number Diff line change @@ -1495,6 +1495,8 @@ Optional Packages:
1495
1495
search for headers
1496
1496
--with-gcc-toolchain Directory where gcc is installed.
1497
1497
--with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498
+ --with-clang-default-openmp-runtime
1499
+ The default OpenMP runtime for Clang.
1498
1500
--with-binutils-include Specify path to binutils/include/ containing
1499
1501
plugin-api.h file for gold plugin.
1500
1502
--with-bug-report-url Specify the URL where bug reports should be
@@ -5948,6 +5950,20 @@ _ACEOF
5948
5950
5949
5951
5950
5952
5953
+ # Check whether --with-clang-default-openmp-runtime was given.
5954
+ if test "${with_clang_default_openmp_runtime+set}" = set; then
5955
+ withval=$with_clang_default_openmp_runtime;
5956
+ else
5957
+ withval=""
5958
+ fi
5959
+
5960
+
5961
+ cat >>confdefs.h <<_ACEOF
5962
+ #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5963
+ _ACEOF
5964
+
5965
+
5966
+
5951
5967
# Check whether --with-binutils-include was given.
5952
5968
if test "${with_binutils_include+set}" = set; then
5953
5969
withval=$with_binutils_include;
Original file line number Diff line number Diff line change 6
6
/* Bug report URL. */
7
7
#undef BUG_REPORT_URL
8
8
9
+ /* Default OpenMP runtime used by -fopenmp. */
10
+ #undef CLANG_DEFAULT_OPENMP_RUNTIME
11
+
9
12
/* Define if we have libxml2 */
10
13
#undef CLANG_HAVE_LIBXML
11
14
You can’t perform that action at this time.
0 commit comments