title: ninja: fatal: CreateProcess: Access is denied. in windows 10
body: <p>the repo i'm trying to build is <a href="https://github.com/svenstaro/glsl-language-server" rel="nofollow noreferrer">https://github.com/svenstaro/glsl-language-server</a></p>
  <p>this is the error i get</p>
  <pre><code>glsl-language-server [ master][△ v3.22.3]
  ❯ cmake -Bbuild -GNinja
  -- The C compiler identification is unknown
  -- The CXX compiler identification is GNU 11.2.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: C:/cygwin64/bin/cc
  -- Check for working C compiler: C:/cygwin64/bin/cc - broken
  CMake Error at C:/Users/hitus/scoop/apps/cmake/3.22.3/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
    The C compiler
  
      &quot;C:/cygwin64/bin/cc&quot;
  
    is not able to compile a simple test program.
  
    It fails with the following output:
  
      Change Dir: E:/software/glsl-language-server/build/CMakeFiles/CMakeTmp
  
      Run Build Command(s):C:/Users/hitus/scoop/shims/ninja.exe cmTC_f7f6a &amp;&amp;
      CreateProcess failed. Command attempted:
      &quot;C:\cygwin64\bin\cc    -o CMakeFiles\cmTC_f7f6a.dir\testCCompiler.c.obj -c E:\software\glsl-language-server\build\CMakeFiles\CMakeTmp\testCCompiler.c&quot;
      ninja: fatal: CreateProcess: Access is denied.
  
  
  
  
  
  
    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:2 (project)
  
  
  -- Configuring incomplete, errors occurred!
  See also &quot;E:/software/glsl-language-server/build/CMakeFiles/CMakeOutput.log&quot;.
  See also &quot;E:/software/glsl-language-server/build/CMakeFiles/CMakeError.log&quot;.
  </code></pre>
  <p>running <code>c++</code> works</p>
  <pre><code>glsl-language-server [ master][△ v3.22.3]
  ❯ c++
  c++: fatal error: no input files
  compilation terminated.
  </code></pre>
  <p>but running <code>cc</code> doesn't</p>
  <pre><code>ResourceUnavailable: Program 'cc' failed to run: An error occurred trying to start process 'C:\cygwin64\bin\cc' with working directory 'E:\software\glsl-language-server'. No application is as
  sociated with the specified file for this operation.At line:1 char:1
  + cc
  + ~~.
  </code></pre>
  <p>i'm using powershell 7 and cygwin, ninja and cmake are installed from scoop</p>