Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
db093366
Commit
db093366
authored
Jun 02, 2018
by
4ast
Committed by
GitHub
Jun 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1795 from iovisor/yhs_dev2
Add "-D __BPF_TRACING__" to frontend compilation flags
parents
d8bb097d
7c4311f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/cc/frontends/clang/loader.cc
src/cc/frontends/clang/loader.cc
+4
-0
No files found.
src/cc/frontends/clang/loader.cc
View file @
db093366
...
@@ -147,7 +147,11 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts,
...
@@ -147,7 +147,11 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts,
// Enable -O2 for clang. In clang 5.0, -O0 may result in function marking as
// Enable -O2 for clang. In clang 5.0, -O0 may result in function marking as
// noinline and optnone (if not always inlining).
// noinline and optnone (if not always inlining).
// Note that first argument is ignored in clang compilation invocation.
// Note that first argument is ignored in clang compilation invocation.
// "-D __BPF_TRACING__" below is added to suppress a warning in 4.17+.
// It can be removed once clang supports asm-goto or the kernel removes
// the warning.
vector
<
const
char
*>
flags_cstr
({
"-O0"
,
"-O2"
,
"-emit-llvm"
,
"-I"
,
dstack
.
cwd
(),
vector
<
const
char
*>
flags_cstr
({
"-O0"
,
"-O2"
,
"-emit-llvm"
,
"-I"
,
dstack
.
cwd
(),
"-D"
,
"__BPF_TRACING__"
,
"-Wno-deprecated-declarations"
,
"-Wno-deprecated-declarations"
,
"-Wno-gnu-variable-sized-type-not-at-end"
,
"-Wno-gnu-variable-sized-type-not-at-end"
,
"-Wno-pragma-once-outside-header"
,
"-Wno-pragma-once-outside-header"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment