File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 7
7
exit
8
8
fi
9
9
10
+ if [ ` gcc -dumpversion | awk -F' .' ' {print $1}' ` -le 6 ]
11
+ then
12
+ bazelflags=' '
13
+ else
14
+ bazelflags=' --copt -faligned-new'
15
+ fi
16
+
10
17
if [ " $1 " = " debug" ]
11
18
then
12
19
DEBUG_FLAG=" --compilation_mode=dbg"
13
20
fi
14
21
15
- bazel build curvefs/... --copt -DHAVE_ZLIB=1 ${DEBUG_FLAG} -s --define=with_glog=true --define=libunwind=true --copt -DGFLAGS_NS=google --copt -Wno-error=format-security --copt -DUSE_BTHREAD_MUTEX --copt -DCURVEVERSION=${curve_version} --linkopt -L/usr/local/lib
22
+ bazel build curvefs/... --copt -DHAVE_ZLIB=1 ${DEBUG_FLAG} -s \
23
+ --define=with_glog=true --define=libunwind=true --copt -DGFLAGS_NS=google --copt -Wno-error=format-security --copt \
24
+ -DUSE_BTHREAD_MUTEX --copt -DCURVEVERSION=${curve_version} --linkopt -L/usr/local/lib ${bazelflags}
25
+
16
26
if [ $? -ne 0 ]
17
27
then
18
28
echo " build curvefs failed"
34
44
echo " mds_test failed"
35
45
exit
36
46
fi
37
- fi
47
+ fi
48
+ echo " end compile"
You can’t perform that action at this time.
0 commit comments