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
Copy file name to clipboardExpand all lines: haskell/private/ghc_wrapper.sh
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,14 @@ if [ "$2" == "--persistent_worker" ]; then
12
12
# wrapping GHC. Not ready for production usage.
13
13
exec"${compile_flags[@]}" --persistent_worker
14
14
else
15
+
# Drop messages that GHC produces on features that we rely upon.
16
+
#
17
+
# "Loaded" is emitted when using GHC environment files, which we
18
+
# use as poor man's response files for GHC.
19
+
#
20
+
# "Warning: the following files ..." is produced when we tell GHC
21
+
# to load object files in the interpreter in the build action
22
+
# of haskell_module which doesn't do any linking.
15
23
while IFS= read -r line;do extra_args+=("$line");done<"$2"
16
24
"${compile_flags[@]}""${extra_args[@]}"2>&1 \
17
25
|while IFS= read -r line;do [[ $line=~ ^(Loaded|Warning: the following files would be used as linker inputs, but linking is not being done:) ]] ||echo"$line";done>&2
0 commit comments