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

[infra/onert] Update cmake toolchain file #14498

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

hseok-oh
Copy link
Contributor

This commit updates cmake toolchain file

  • Remove tizen cross build toolchain file: not used
  • Support clang build: Set USE_CLANG=1 environment variable
  • Remove deprecated include: CMakeForceCompiler
  • Remove using envoption()

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh hseok82.oh@samsung.com

This commit updates cmake toolchain file
- Remove tizen cross build toolchain file: not used
- Support clang build: Set USE_CLANG=1 environment variable
- Remove deprecated include: CMakeForceCompiler
- Remove using envoption()

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
@hseok-oh hseok-oh added the PR/ready for review It is ready to review. Please review it. label Dec 26, 2024
@hseok-oh hseok-oh requested a review from a team December 26, 2024 05:39
set(NNAS_PROJECT_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../../..")
set(ROOTFS_AARCH64 "${NNAS_PROJECT_SOURCE_DIR}/tools/cross/rootfs/aarch64")
include("${NNAS_PROJECT_SOURCE_DIR}/infra/cmake/modules/OptionTools.cmake")
if(DEFINED ENV{USE_CLANG} AND "$ENV{USE_CLANG}" STREQUAL "1")
Copy link
Contributor

Choose a reason for hiding this comment

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

just a question,
why did you add clang support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • Sometimes someone request clang build (ex. oversea member)
  • More strict frontend check than gcc, and gcc follows these check on version up

Copy link
Contributor

@seockho-kim seockho-kim left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@glistening glistening left a comment

Choose a reason for hiding this comment

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

LGTM

@hseok-oh hseok-oh merged commit 0889d96 into Samsung:master Dec 27, 2024
9 checks passed
@hseok-oh hseok-oh deleted the update_toolchain_file branch December 27, 2024 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/ready for review It is ready to review. Please review it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants