summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/intel-tbb/tbb_gcc_rtm_key.patch
blob: f1a42fb52ff1150b2ac14c678582345e84320899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
*** build/linux.gcc.inc.orig	2017-01-10 16:54:01.000000000 -0800
--- build/linux.gcc.inc	2017-01-10 16:54:04.000000000 -0800
***************
*** 49,57 ****
  endif
  
  # gcc 4.8 and later support RTM intrinsics, but require command line switch to enable them
! ifneq (,$(shell gcc -dumpversion | egrep  "^(4\.[8-9]|[5-9])"))
!     RTM_KEY = -mrtm
! endif
  
  ifeq ($(cfg), release)
          CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
--- 49,57 ----
  endif
  
  # gcc 4.8 and later support RTM intrinsics, but require command line switch to enable them
! #ifneq (,$(shell gcc -dumpversion | egrep  "^(4\.[8-9]|[5-9])"))
! #    RTM_KEY = -mrtm
! #endif
  
  ifeq ($(cfg), release)
          CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD