Skip to content

Conversation

@zhuzeitou
Copy link
Contributor

Replaces setenv with putenv because setenv is not available on some toolchains (e.g., llvm-mingw, clang-cl), leading to compilation errors.

Replaces `setenv` with `putenv` because `setenv` is not available on
some toolchains (e.g., llvm-mingw, clang-cl), leading to compilation
errors.
@github-actions github-actions bot added the core label Jun 1, 2025
@tencent-adm
Copy link
Member

tencent-adm commented Jun 1, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

github-actions bot commented Jun 1, 2025

The binary size change of libncnn.so (bytes)

architecture base size pr size difference
x86_64 16503040 16503040 0 😘
armhf 7373828 7373828 0 😘
aarch64 10775528 10775528 0 😘

@codecov-commenter
Copy link

codecov-commenter commented Jun 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.70%. Comparing base (ebc041c) to head (a712889).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6101   +/-   ##
=======================================
  Coverage   95.70%   95.70%           
=======================================
  Files         827      827           
  Lines      270161   270161           
=======================================
  Hits       258562   258562           
  Misses      11599    11599           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nihui nihui requested a review from Copilot June 2, 2025 07:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces POSIX setenv calls with putenv to resolve build errors on toolchains lacking setenv (e.g., llvm-mingw, clang-cl).

  • Swaps two setenv invocations for putenv in the OpenMP environment initializer.
  • Ensures environment variables KMP_AFFINITY and KMP_DUPLICATE_LIB_OK are set on startup.

@nihui nihui merged commit 7b63f5d into Tencent:master Jun 2, 2025
101 of 105 checks passed
@nihui
Copy link
Member

nihui commented Jun 2, 2025

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants