Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hammer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vyrus
hammer
Commits
7f553654
Commit
7f553654
authored
11 years ago
by
Meredith L. Patterson
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/UpstandingHackers/hammer
into cxx
parents
e7453e54
2f7f7d6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.travis.yml
+5
-1
5 additions, 1 deletion
.travis.yml
README.md
+1
-0
1 addition, 0 deletions
README.md
SConstruct
+12
-0
12 additions, 0 deletions
SConstruct
with
19 additions
and
1 deletion
.gitignore
+
1
−
0
View file @
7f553654
...
...
@@ -17,3 +17,4 @@ TAGS
docs/milestone2.dot.pdf
*.dot.pdf
Session.vim
*.gcov
This diff is collapsed.
Click to expand it.
.travis.yml
+
5
−
1
View file @
7f553654
...
...
@@ -5,6 +5,10 @@ compiler:
before_install
:
-
sudo apt-get update -qq
-
sudo apt-get install -qq libboost1.48-dev
script
:
scons
-
sudo pip install cpp-coveralls --use-mirrors
script
:
-
scons --coverage
after_success
:
-
coveralls
notifications
:
irc
:
"
irc.upstandinghackers.com#hammer"
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
7f553654
...
...
@@ -4,6 +4,7 @@ Hammer is written in C, but will provide bindings for other languages. If you do
Hammer currently builds under Linux. (Windows and OSX are coming.)
[

](https://travis-ci.org/UpstandingHackers/hammer)
Features
========
*
Bit-oriented -- grammars can include single-bit flags or multi-bit constructs that span character boundaries, with no hassle
...
...
This diff is collapsed.
Click to expand it.
SConstruct
+
12
−
0
View file @
7f553654
...
...
@@ -13,6 +13,12 @@ AddOption("--variant",
action
=
"
store
"
,
help
=
"
Build variant (debug or opt)
"
)
AddOption
(
"
--coverage
"
,
dest
=
"
coverage
"
,
default
=
False
,
action
=
"
store_true
"
,
help
=
"
Build with coverage instrumentation
"
)
env
[
'
BUILDDIR
'
]
=
'
build/$VARIANT
'
dbg
=
env
.
Clone
(
VARIANT
=
'
debug
'
)
...
...
@@ -26,6 +32,12 @@ if GetOption("variant") == 'debug':
else
:
env
=
opt
if
GetOption
(
"
coverage
"
):
env
.
Append
(
CFLAGS
=
[
"
-fprofile-arcs
"
,
"
-ftest-coverage
"
],
CXXFLAGS
=
[
"
-fprofile-arcs
"
,
"
-ftest-coverage
"
],
LDFLAGS
=
[
"
-fprofile-arcs
"
,
"
-ftest-coverage
"
],
LIBS
=
[
'
gcov
'
])
if
os
.
getenv
(
"
CC
"
)
==
"
clang
"
:
env
.
Replace
(
CC
=
"
clang
"
,
CXX
=
"
clang++
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment