Skip to content

Commit

Permalink
update BUILD to remove gcc9 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wzl12356 authored Aug 21, 2021
1 parent 9331962 commit 0c7d518
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ cc_library(
includes = ['src/include'],
visibility = ["//visibility:public"],
)
cc_library(
name = 'common_c',
srcs = [
'src/kernel/mpoller.c',
'src/kernel/msgqueue.c',
'src/kernel/poller.c',
'src/kernel/rbtree.c',
'src/kernel/thrdpool.c',
'src/util/crc32c.c',
],
hdrs = glob(['src/*/*.h']) + glob(['src/*/*.inl']),
includes = [
'src/kernel',
'src/util',
],
copts = ['-std=gnu90'],
visibility = ["//visibility:public"],
)
cc_library(
name = 'common',
srcs = [
Expand Down Expand Up @@ -31,12 +49,7 @@ cc_library(
'src/kernel/Executor.cc',
'src/kernel/IOService_linux.cc',
'src/kernel/SubTask.cc',
'src/kernel/mpoller.c',
'src/kernel/msgqueue.c',
'src/kernel/poller.c',
'src/kernel/rbtree.c',
'src/kernel/thrdpool.c',
] + glob(['src/util/*.c']) + glob(['src/util/*.cc']),
] + glob(['src/util/*.cc']),
hdrs = glob(['src/*/*.h']) + glob(['src/*/*.inl']),
includes = [
'src/algorithm',
Expand All @@ -49,9 +62,8 @@ cc_library(
'src/server',
'src/util',
],
deps = ['workflow_hdrs'],
deps = ['workflow_hdrs', 'common_c'],
visibility = ["//visibility:public"],
copts = ['-std=gnu90'],
)
cc_library(
name = 'http',
Expand Down

0 comments on commit 0c7d518

Please sign in to comment.