Skip to content

Commit

Permalink
Add KBUILD_MODNAME flag to default cflags
Browse files Browse the repository at this point in the history
  • Loading branch information
willfindlay authored and yonghong-song committed Jun 18, 2020
1 parent 99fa312 commit 68abb51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cc/frontends/clang/kbuild_helper.cc
Expand Up @@ -101,6 +101,7 @@ int KBuildHelper::get_flags(const char *uname_machine, vector<string> *cflags) {
cflags->push_back("-D__HAVE_BUILTIN_BSWAP16__");
cflags->push_back("-D__HAVE_BUILTIN_BSWAP32__");
cflags->push_back("-D__HAVE_BUILTIN_BSWAP64__");
cflags->push_back("-DKBUILD_MODNAME=\"bcc\"");

// If ARCH env variable is set, pass this along.
if (archenv)
Expand Down

0 comments on commit 68abb51

Please sign in to comment.