Skip to content

Commit

Permalink
install: use mingw-nuwen instead of stock gcc
Browse files Browse the repository at this point in the history
Avoids issues with Windows builds like:
```
gcc -Os -Wall -W -Wstrict-prototypes -DNDEBUG -D_WIN32_WINNT=0x501 -Iinclude -I. -o wingenminiupnpcstrings.exe wingenminiupnpcstrings.c
process_begin: CreateProcess(NULL, gcc -Os -Wall -W -Wstrict-prototypes -DNDEBUG -D_WIN32_WINNT=0x501 -Iinclude -I. -o wingenminiupnpcstrings.exe w ingenminiupnpcstrings.c, ...) failed.
make (e=2): The system cannot find the file specified.
```
status-im/infra-nimbus#132 (comment)

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Oct 2, 2023
1 parent 9799dfb commit 51bd279
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks/install.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
- name: Install GCC and CMake to compile Nim
win_shell: 'scoop install --global gcc cmake'
- name: Install MinGW-Nuwen and CMake to compile Nim
win_shell: 'scoop install --global mingw-nuwen gcc cmake'

- name: Add GCC to the system wide PATH
win_path:
name: 'PATH'
elements: 'C:\ProgramData\scoop\apps\gcc\current\bin'
elements:
- 'C:\ProgramData\scoop\apps\mingw-nuwen\current\bin'
- 'C:\ProgramData\scoop\apps\gcc\current\bin'
scope: 'machine'
state: 'present'
register: machine_path
Expand Down

0 comments on commit 51bd279

Please sign in to comment.