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

build fix _WIN32 in scoped_env_vars.cc #5218

Merged
merged 1 commit into from
Sep 18, 2020
Merged

build fix _WIN32 in scoped_env_vars.cc #5218

merged 1 commit into from
Sep 18, 2020

Conversation

jywu-msft
Copy link
Member

on Windows machine, encounter build failure if using cmake to build (rather than build.bat)

C:\onnxruntime-debug\onnxruntime\test\util\scoped_env_vars.cc(19,1): error C3861: 'setenv': identifier not found [C:\on
nxruntime-debug\build\windows\release\onnxruntime_test_utils.vcxproj]
C:\onnxruntime-debug\onnxruntime\test\util\scoped_env_vars.cc(23,1): error C3861: 'unsetenv': identifier not found [C:
onnxruntime-debug\build\windows\release\onnxruntime_test_utils.vcxproj]
C:\onnxruntime-debug\onnxruntime\test\util\scoped_env_vars.cc(31,21): warning C4996: 'getenv': This function or variabl
e may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help
for details. [C:\onnxruntime-debug\build\windows\release\onnxruntime_test_utils.vcxproj]

@jywu-msft jywu-msft requested a review from a team as a code owner September 18, 2020 01:00
@jywu-msft jywu-msft merged commit 1b61dfa into master Sep 18, 2020
@jywu-msft jywu-msft deleted the jywu_cmake_build branch September 18, 2020 07:23
tianleiwu pushed a commit that referenced this pull request Sep 23, 2020
tianleiwu pushed a commit that referenced this pull request Sep 23, 2020
edgchen1 pushed a commit that referenced this pull request Sep 24, 2020
edgchen1 pushed a commit that referenced this pull request Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants