Skip to content

Commit fcc1924

Browse files
authored
Merge pull request swiftlang#221 from apple/das-disable-linux-membarrier-include
remove unused dependency on linux/membarrier.h for intel to fix CI build
2 parents f66f018 + dea8577 commit fcc1924

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ on Ubuntu; currently supported versions are 14.04, 15.10 and 16.04.
152152
153153
1. The first thing to do is install required packages:
154154
155-
`sudo apt-get install autoconf libtool pkg-config clang systemtap-sdt-dev libbsd-dev`
155+
`sudo apt-get install autoconf libtool pkg-config clang systemtap-sdt-dev libbsd-dev linux-libc-dev`
156156
157157
Note: compiling libdispatch requires clang 3.8 or better and
158158
the gold linker. If the default clang on your Ubuntu version is

Diff for: src/shims/lock.h

+2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ _dispatch_lock_has_failed_trylock(dispatch_lock lock_value)
8989

9090
#elif defined(__linux__)
9191
#include <linux/futex.h>
92+
#if !defined(__x86_64__) && !defined(__i386__)
9293
#include <linux/membarrier.h>
94+
#endif
9395
#include <unistd.h>
9496
#include <sys/syscall.h> /* For SYS_xxx definitions */
9597

0 commit comments

Comments
 (0)