Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 8 commits into from

Conversation

yiguolei
Copy link
Contributor

@yiguolei yiguolei commented Jan 2, 2022

  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
Contributor

#7590

@morningman
Copy link
Contributor

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

@morningman morningman self-assigned this Jan 5, 2022
@morningman morningman 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
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.

@morningman morningman closed this Feb 4, 2022
@yiguolei yiguolei deleted the clang_compile branch February 18, 2022 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/chore Issues or PRs related to compile and install
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants