-
Notifications
You must be signed in to change notification settings - Fork 20
gnumake: drop zig bootstrap, build with cc_binary #717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exports_files( | ||
| [ | ||
| "BUILD.gnumake", | ||
| "config.h", | ||
| ], | ||
| visibility = ["//visibility:public"], | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # Source list mirrors gmake 4.4.1's autoconf-resolved make_OBJECTS + | ||
| # libgnu_a_OBJECTS for a POSIX (non-w32, non-vms, non-amiga) build with | ||
| # remote-stub.c. Re-derived by reading make_SRCS, am__append_4 (posixos), | ||
| # am__append_6 (remote-stub), and the lib/Makefile am_libgnu_a_OBJECTS | ||
| # from a configure run on Linux glibc. See tools/gnumake/config.h for the | ||
| # matching #define set. | ||
| cc_binary( | ||
| name = "make", | ||
| srcs = [ | ||
| "src/ar.c", | ||
| "src/arscan.c", | ||
| "src/commands.c", | ||
| "src/default.c", | ||
| "src/dir.c", | ||
| "src/expand.c", | ||
| "src/file.c", | ||
| "src/function.c", | ||
| "src/getopt.c", | ||
| "src/getopt1.c", | ||
| "src/guile.c", | ||
| "src/hash.c", | ||
| "src/implicit.c", | ||
| "src/job.c", | ||
| "src/load.c", | ||
| "src/loadapi.c", | ||
| "src/main.c", | ||
| "src/misc.c", | ||
| "src/output.c", | ||
| "src/posixos.c", | ||
| "src/read.c", | ||
| "src/remake.c", | ||
| "src/remote-stub.c", | ||
| "src/rule.c", | ||
| "src/shuffle.c", | ||
| "src/signame.c", | ||
| "src/strcache.c", | ||
| "src/variable.c", | ||
| "src/version.c", | ||
| "src/vpath.c", | ||
| "lib/concat-filename.c", | ||
| "lib/findprog-in.c", | ||
| "lib/fnmatch.c", | ||
| "lib/glob.c", | ||
| ] + glob([ | ||
| "src/*.h", | ||
| "lib/*.h", | ||
| ]), | ||
| copts = [ | ||
| "-DHAVE_CONFIG_H", | ||
| # gmake's remake.c / read.c reference these as install-prefix paths | ||
| # (.LIBPATTERNS, dlopen search). Match autotools' default --prefix | ||
| # so behavior is identical to a stock distro build. | ||
| '-DLIBDIR=\\"/usr/local/lib\\"', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thes paths don't really make sense. What happens if you set them empty or not at all ? |
||
| '-DLOCALEDIR=\\"/usr/local/share/locale\\"', | ||
| '-DINCLUDEDIR=\\"/usr/local/include\\"', | ||
| ], | ||
| includes = [ | ||
| "lib", | ||
| "src", | ||
| ], | ||
| # Hermeticity within a fixed cc_toolchain: kill the random ELF build-id | ||
| # and strip symbols/debug info so the binary content depends only on | ||
| # source + toolchain, not on the build host or wall clock. | ||
| linkopts = [ | ||
| "-Wl,--build-id=none", | ||
| "-Wl,-s", | ||
| ], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this hash used to verify the download ?