WORKSPACE:workspace(name = "example")BUILD:cc_binary(name="example", srcs=["example.cpp"])example.cpp:#include <stdio.h>int main(int argc, char** argv) {printf("Hello, world.\n");return 0;}
$ bazel build example --cpu=x64_windows_msvc --verbose_failures
Extracting Bazel installation...ERROR: CreateFile(C:\tools\msys64\tmp\Bazel\CAAOlKMs\install): The system cannot find the file specified. (2).........................INFO: Found 1 target...ERROR: C:/src/github/Example/BUILD:1:1: C++ compilation of rule '//:example' failed: msvc_cl.bat failed: error executing commandcd C:/tools/msys64/tmp/Bazel/CAAOlKMs/execroot/ExampleSET PATH=external/local_config_cc/wrapper/binexternal/local_config_cc/wrapper/bin/msvc_cl.bat -m64 /D__inline__=__inline /DOS_WINDOWS=OS_WINDOWS /DCOMPILER_MSVC /DNOGDI /DNOMINMAX /DPRAGMA_SUPPORTED /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /D_USE_MATH_DEFINES /nologo /bigobj /Zm500 /J /Gy /GF /W3 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /DNDEBUG /Od -Xcompilation-mode=fastbuild /I. /Ibazel-out/vc_14_0_x64-fastbuild/genfiles /Iexternal/bazel_tools /Ibazel-out/vc_14_0_x64-fastbuild/genfiles/external/bazel_tools /Iexternal/bazel_tools/tools/cpp/gcc3 /DEPENDENCY_FILE bazel-out/vc_14_0_x64-fastbuild/bin/_objs/example/example.d /c example.cpp /Fobazel-out/vc_14_0_x64-fastbuild/bin/_objs/example/example.o: com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.The system cannot find the path specified.Target //:example failed to buildINFO: Elapsed time: 25.131s, Critical Path: 0.41s
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/07b8c1ed-e6f1-4990-b59e-d67a44dcadb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/7dd80731-489b-4aee-90f4-ea877f756cf9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/7dd80731-489b-4aee-90f4-ea877f756cf9%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAM%3DdnvcU2ZxaqyAG6Ecsa7Da5ntBRSdTjfz%3D77YOW1ir5j6goQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/7dd80731-489b-4aee-90f4-ea877f756cf9%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/7dd80731-489b-4aee-90f4-ea877f756cf9%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/dbbd5b42-f32f-483e-9f4a-aa8ef6788e2f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/dbbd5b42-f32f-483e-9f4a-aa8ef6788e2f%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAM%3Ddnvfd8U%3DXfS8YYoF_vhf%2BwHsQC2HDWGXYNHNQofwQKmeg2A%40mail.gmail.com.
Our goal is to make Bazel as a native tool on Windows, you can actually set all those environment variables and run bazel in cmd.exe