-
Notifications
You must be signed in to change notification settings - Fork 15
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
Install build rules #381
Open
caleridas
wants to merge
2
commits into
master
Choose a base branch
from
install-build-rules
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Install build rules #381
Changes from all commits
Commits
Show all changes
2 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 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 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 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 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,5 @@ | ||
jlm (0.0.1) UNRELEASED; urgency=medium | ||
|
||
* Initial packaging | ||
|
||
-- Helge Bahmann <[email protected]> Sun, 04 Feb 2024 17:20:30 +0100 |
This file contains 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 @@ | ||
10 |
This file contains 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,43 @@ | ||
Source: jlm | ||
Priority: optional | ||
Maintainer: Helge Bahmann <[email protected]> | ||
Build-Depends: debhelper (>= 9) | ||
Standards-Version: 3.9.8 | ||
Section: libs | ||
|
||
Package: libjlmutil-dev | ||
Section: libdevel | ||
Architecture: any | ||
Depends: libjlmutil0 (= ${binary:Version}), ${misc:Depends} | ||
Description: Common utilities for jlm. | ||
Common utilities for jlm. | ||
. | ||
Provides shared utility library for other jlm libraries. | ||
|
||
Package: libjlmutil0 | ||
Architecture: any | ||
Depends: ${misc:Depends}, ${shlibs:Depends} | ||
Description: Common utilities for jlm. | ||
Common utilities for jlm. | ||
. | ||
Provides shared utility library for other jlm libraries. | ||
|
||
Package: librvsdg-dev | ||
Section: libdevel | ||
Architecture: any | ||
Depends: librvsdg0 (= ${binary:Version}), ${misc:Depends}, libjlmutil-dev | ||
Description: RVSDG compiler IR library. | ||
RVSDG compiler IR library. | ||
. | ||
Library that implements the RVSDG (regionalized value state dependence | ||
graph) compiler intermediate representation. | ||
|
||
Package: librvsdg0 | ||
Architecture: any | ||
Depends: ${misc:Depends}, ${shlibs:Depends} | ||
Description: RVSDG compiler IR library. | ||
RVSDG compiler IR library. | ||
. | ||
Library that implements the RVSDG (regionalized value state dependence | ||
graph) compiler intermediate representation. | ||
|
This file contains 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,4 @@ | ||
usr/include/jlm/util/* | ||
usr/lib/*/libjlmutil.so | ||
usr/lib/*/libjlmutil.a | ||
usr/lib/*/pkgconfig/libjlmutil.pc |
This file contains 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 @@ | ||
usr/lib/*/libjlmutil.so.0* |
This file contains 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,4 @@ | ||
usr/include/jlm/rvsdg/* | ||
usr/lib/*/librvsdg.so | ||
usr/lib/*/librvsdg.a | ||
usr/lib/*/pkgconfig/librvsdg.pc |
This file contains 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 @@ | ||
usr/lib/*/librvsdg.so.0* |
This file contains 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,14 @@ | ||
#!/usr/bin/make -f | ||
%: | ||
dh $@ | ||
|
||
.PHONY: override_dh_strip override_dh_auto_configure | ||
|
||
override_dh_auto_clean: | ||
rm -rf build build-* docs | ||
|
||
override_dh_auto_configure: | ||
./configure.sh --enable-shared --prefix=/usr --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) | ||
|
||
override_dh_strip: | ||
dh_strip --automatic-dbgsym |
This file contains 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 @@ | ||
3.0 (native) |
This file contains 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 @@ | ||
tar-ignore = ".git/*" |
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Copyright 2019 Nico Reißmann <[email protected]> | ||
# See COPYING for terms of redistribution. | ||
|
||
libllvm_SOURCES = \ | ||
libjlmllvm_SOURCES = \ | ||
jlm/llvm/backend/jlm2llvm/instruction.cpp \ | ||
jlm/llvm/backend/jlm2llvm/jlm2llvm.cpp \ | ||
jlm/llvm/backend/jlm2llvm/type.cpp \ | ||
|
@@ -61,7 +61,7 @@ libllvm_SOURCES = \ | |
jlm/llvm/opt/reduction.cpp \ | ||
jlm/llvm/opt/unroll.cpp \ | ||
|
||
libllvm_HEADERS = \ | ||
libjlmllvm_HEADERS = \ | ||
jlm/llvm/opt/unroll.hpp \ | ||
jlm/llvm/opt/DeadNodeElimination.hpp \ | ||
jlm/llvm/opt/inlining.hpp \ | ||
|
@@ -124,7 +124,7 @@ libllvm_HEADERS = \ | |
jlm/llvm/backend/jlm2llvm/instruction.hpp \ | ||
jlm/llvm/backend/jlm2llvm/context.hpp \ | ||
|
||
libllvm_TESTS += \ | ||
libjlmllvm_TESTS += \ | ||
tests/jlm/llvm/backend/llvm/r2j/test-empty-gamma \ | ||
tests/jlm/llvm/backend/llvm/r2j/test-partial-gamma \ | ||
tests/jlm/llvm/backend/llvm/r2j/test-recursive-data \ | ||
|
@@ -180,12 +180,14 @@ libllvm_TESTS += \ | |
tests/jlm/llvm/opt/test-push \ | ||
tests/jlm/llvm/opt/test-unroll \ | ||
|
||
libllvm_TEST_LIBS = \ | ||
libjlmllvm_TEST_LIBS = \ | ||
libjlmtest \ | ||
libllvm \ | ||
libjlmllvm \ | ||
librvsdg \ | ||
libutil \ | ||
libjlmutil \ | ||
|
||
libllvm_TEST_EXTRA_LDFLAGS = $(shell $(LLVMCONFIG) --ldflags --libs --system-libs) | ||
libjlmllvm_TEST_EXTRA_LDFLAGS = $(shell $(LLVMCONFIG) --ldflags --libs --system-libs) | ||
libjlmllvm_VERSION = 0.0.1 | ||
libjlmllvm_SOVERSION = 0 | ||
|
||
$(eval $(call common_library,libllvm)) | ||
$(eval $(call common_library,libjlmllvm)) |
This file contains 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 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 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 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,10 @@ | ||
libdir = @libdir@ | ||
includedir = @includedir@ | ||
|
||
Name: librvsdg | ||
Description: rvsdg representation library | ||
Version: 0.0.1 | ||
URL: https://github.com/phate/jlm | ||
Libs: -L${libdir} -lrvsdg | ||
Requires: libjlmutil | ||
Cflags: -I${includedir} |
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.
These flags are not mentioned in the help text, is that on purpose?
Also, the use of
--flag=<value>
instead of--flag <value>
is different from the others, is this due to Debian standards for configure scripts or something?Anyway, it might be a good argument for rewriting the configure-script in python with
argparse
to get more general parsing.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.
"--flag=X" vs. "--flag X": This is really annoying, I figured that meta-buildsystems kind of expect both to work with --flag=X being used more often (most standard packaging scripts). Ideally, both should work but TBH I don't want the feature creep of fully reimpleminting autoconf & friends.
Rewriting in python: opens a different of issues depending on it as build-time requirement. Depending on where and how things are built, it is "#!/usr/bin/python", "#!/usr/bin/python3" "#!/bin/env python" "#!/bin/env python3" and if things turn ugly it is "#!/bin/env python2.7".... posix sh sucks badly from ergonomic point of view, but at least is realible.
Documentation is missing, will fix.
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.
As talked offline, we leave it as it is right now. I am not happy with the parameter syntax mix, but if that is what is needed right now, then let's go ahead. Just add the documentation and we can merge this one.