Skip to content

Commit

Permalink
remove fake news
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jun 28, 2018
1 parent 5a1665b commit 6520d79
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/python/pants/backend/native/subsystems/libc_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,9 @@ def register_options(cls, register):
register('--host-compiler', type=str, default='gcc', fingerprint=True, advanced=True,
help='The host compiler to invoke with -print-search-dirs to find the host libc.')

# NB: crti.o is required to create executables on Linux. Our provided gcc can find it if the
# containing directory is within the LIBRARY_PATH environment variable when we invoke gcc.
# Note that clang is not able to use LIBRARY_PATH to find this file -- instead, you need to set
# --sysroot and provide a -Bprefix (may require a space?) such that this file is located at
# <sysroot>/<prefix>/lib/crti.o. Setting --sysroot requires adding so many more "-Bprefix"
# arguments to add other required files and libraries for linking that we do not try to link with
# clang at all currently.
# NB: crti.o is required to create executables on Linux. Our provided gcc and clang can find it if
# the containing directory is within the LIBRARY_PATH environment variable when we invoke the
# compiler.
_LIBC_INIT_OBJECT_FILE = 'crti.o'

def _get_host_libc_from_host_compiler(self):
Expand Down

0 comments on commit 6520d79

Please sign in to comment.