Commit e9fb6c4
authored
-frandom-seed: reduce value length (#8)
The current default `-frandom-seed="$*"` can run into "Argument list too
long" errors (E2BIG). This happened in pytorch with 1300 object files on
the command line.
Fix that by filtering:
1. flags
2. object files
3. static/shared libraries
4. already parsed, separated paths from `-I <path>`, `-L <path>`, and others.
What remains is hopefully a short string that contains at a minimum all source files.
Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>1 parent e47dd22 commit e9fb6c4
2 files changed
Lines changed: 72 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
374 | 373 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
| |||
953 | 951 | | |
954 | 952 | | |
955 | 953 | | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
964 | 975 | | |
965 | 976 | | |
966 | 977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1014 | 1059 | | |
1015 | 1060 | | |
1016 | 1061 | | |
| |||
1029 | 1074 | | |
1030 | 1075 | | |
1031 | 1076 | | |
| 1077 | + | |
| 1078 | + | |
1032 | 1079 | | |
1033 | 1080 | | |
1034 | 1081 | | |
| |||
0 commit comments