Skip to content

Commit 410d8bc

Browse files
committed
Add dependency tracking for Developer Studio 12.6
1 parent dbef315 commit 410d8bc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: Makefile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HASWELL = @HAVE_HASWELL@
1111
CC = @CC@
1212
CPPFLAGS = @CPPFLAGS@ -I$(SOURCE)/include -I$(SOURCE)/src -I.
1313
CFLAGS = @CFLAGS@
14-
DEPFLAGS = -MT $@ -MMD -MP -MF $(@:.o=.d)
14+
DEPFLAGS = @DEPFLAGS@
1515
VPATH = @srcdir@
1616

1717
SOURCE = @srcdir@

Diff for: configure.ac

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ case "$enable_haswell" in
3232
yes|*) enable_haswell=yes ;;
3333
esac
3434

35+
# GCC and Clang
36+
AX_CHECK_COMPILE_FLAG([-MMD],DEPFLAGS="-MMD -MP")
37+
# Oracle Developer Studio (no -MP)
38+
AX_CHECK_COMPILE_FLAG([-xMMD],DEPFLAGS="-xMMD")
39+
40+
AC_SUBST([DEPFLAGS])
41+
3542
# Figure out the canonical target architecture.
3643
AC_CANONICAL_TARGET
3744

0 commit comments

Comments
 (0)