Skip to content

[Improvement] support build thirdparty and BE using clang - #7569

Closed
yiguolei wants to merge 8 commits into
apache:masterfrom
yiguolei:clang_compile
Closed

[Improvement] support build thirdparty and BE using clang#7569
yiguolei wants to merge 8 commits into
apache:masterfrom
yiguolei:clang_compile

Conversation

@yiguolei

@yiguoleiyiguolei commented Jan 2, 2022

Copy link
Copy Markdown
Contributor
  1. Support build thirdparty and BE using clang
  2. User could export CC and CXX env to switch the compiler from clang to gcc
  3. If user not set CC and CXX env, then it will use gcc from DORIS_GCC_HOME or the system's default gcc.

In the future, I think we should only support Clang.

@morningman

Copy link
Copy Markdown
Contributor

#7590

@morningman

Copy link
Copy Markdown
Contributor

I think we need to document to explain when and how to use clang or gcc.

@morningmanmorningman self-assigned this Jan 5, 2022
@morningmanmorningman added the kind/chore Issues or PRs related to compile and install label Jan 5, 2022
current_size = new_size;
}

template class DataBuffer<bool>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"explicit template instantiation" is definition and should be in source file (translation unit), or else in theory it's ODR violation. In practice it doesn't make sense to have them in header files (outline defined) which slows down compilation and leads to problems you're trying to work around.

@yiguolei
yiguolei deleted the clang_compile branch February 18, 2022 06:18
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/choreIssues or PRs related to compile and install

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@yiguolei@morningman@amosbird