Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 16, 2021

When in compile-only mode warn about unused linker
inputs. I took the error string directly from gcc
here.

$ gcc -c a.o -o out.o
gcc: warning: a.o: linker input file unused because linking not done
$ echo $?
0
$ stat out.o
stat: cannot statx 'out.o': No such file or directory

Also, rename temp_files to linker_inputs which better reflects
its purpose.

Fixes: #13919

@sbc100 sbc100 requested review from juj and tlively April 16, 2021 14:51
@sbc100 sbc100 force-pushed the unused_linker_inputs branch 2 times, most recently from b82d0c8 to 10d7775 Compare April 16, 2021 15:44
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

When in compile-only mode warn about unused linker
inputs.   I took the error string directly from gcc
here.

```
$ gcc -c a.o -o out.o
gcc: warning: a.o: linker input file unused because linking not done
$ echo $?
0
$ stat out.o
stat: cannot statx 'out.o': No such file or directory
```

Also, rename `temp_files` to `linker_inputs` which better reflects
its purpose.

Fixes: #13919
@sbc100 sbc100 force-pushed the unused_linker_inputs branch from 10d7775 to b7407a2 Compare April 16, 2021 19:15
@sbc100 sbc100 enabled auto-merge (squash) April 16, 2021 19:16
sbc100 added a commit that referenced this pull request Apr 16, 2021
For consistency with #13921 also rename some args and locals in the
linking-related functions in building.py.

The first argument to these functions are linker arguments that include
both files and flags so just calling them args I think is clearer.
sbc100 added a commit that referenced this pull request Apr 16, 2021
For consistency with #13921 also rename some args and locals in the
linking-related functions in building.py.

The first argument to these functions are linker arguments that include
both files and flags so just calling them args I think is clearer.
sbc100 added a commit that referenced this pull request Apr 16, 2021
For consistency with #13921 also rename some args and locals in the
linking-related functions in building.py.

The first argument to these functions are linker arguments that include
both files and flags so just calling them args I think is clearer.
@sbc100 sbc100 merged commit db39c2d into main Apr 16, 2021
@sbc100 sbc100 deleted the unused_linker_inputs branch April 16, 2021 20:12
sbc100 added a commit that referenced this pull request Apr 16, 2021
For consistency with #13921 also rename some args and locals in the
linking-related functions in building.py.

The first argument to these functions are linker arguments that include
both files and flags so just calling them args I think is clearer.
@juj
Copy link
Collaborator

juj commented Apr 17, 2021

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Silent failure on linking Wasm object files to a LLVM bitcode file

4 participants