You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing quotes to support paths with spaces
Move the mingw-w64 defaults to the bottom, since they are not that important
to users now since it is disabled by default.
With mingw-w64, there are three ways wildcard expansion can be configured:
11
11
12
-
1. mingw-w64 can be configured at build time to either enable or disable wildcard expansion by default via the `--enable-wildcard` configure flags. This can to be overridden on a per .exe basis by the user.
13
-
14
-
Wildcard expansion is disabled by default in MSYS2.
15
-
16
-
2. You can set `_dowildcard` in your source code to either `0` or `-1` to disable or enable wildcard expansion.
12
+
1. You can set `_dowildcard` in your source code to either `0` or `-1` to disable or enable wildcard expansion.
17
13
18
14
```c
19
15
// To force-enable wildcard expansion
@@ -22,15 +18,19 @@ With mingw-w64, there are three ways wildcard expansion can be configured:
22
18
int _dowildcard = 0;
23
19
```
24
20
25
-
3. You can link in `CRT_noglob.o` or `CRT_glob.o` to disable or enable wildcard expansion, respectively. This will error out if `_dowildcard` is already set in the source.
21
+
2. You can link in `CRT_noglob.o` or `CRT_glob.o` to disable or enable wildcard expansion, respectively. This will error out if `_dowildcard` is already set in the source.
26
22
27
23
```bash
28
24
# To force-enable wildcard expansion
29
-
cc main.c $(cc -print-file-name=CRT_glob.o)
25
+
cc main.c "$(cc -print-file-name=CRT_glob.o)"
30
26
# To force-disable wildcard expansion
31
-
cc main.c $(cc -print-file-name=CRT_noglob.o)
27
+
cc main.c "$(cc -print-file-name=CRT_noglob.o)"
32
28
```
33
29
30
+
3. mingw-w64 can be configured at build time to either enable or disable wildcard expansion by default via the `--enable-wildcard` configure flags. This can to be overridden on a per .exe basis by the user.
31
+
32
+
Wildcard expansion is disabled by default in MSYS2.
33
+
34
34
### Changelog
35
35
36
36
* Starting with 2024-11-03 we have changed mingw-w64 to to disable wildcard
0 commit comments