Skip to content

Avoid llvm-nm / llvm-objcopy special cases for mingw #107453

Description

@nikic

#100178 switched a few places that previously used llvm-nm / llvm-objcopy to use nm / objcopy instead, because the LLVM tools have some kind of output redirection / piping issue with the new toolchain.

We should figure out what the root cause of this is an try to fix it somewhere.

Example:

# We're using the llvm-nm instead of the system nm to ensure it is compatible
# with the LLVM bitcode generated by rustc.
# Except on Windows where piping/IO redirection under MSYS2 is wonky with llvm-nm.
ifndef IS_WINDOWS
NM = "$(LLVM_BIN_DIR)"/llvm-nm
else
NM = nm
endif

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions