Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
7b04d793
Commit
7b04d793
authored
7 years ago
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler selectivity
parent
58dd8c86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
tests/tests-c-compiler/check-assembly.sh
tests/tests-c-compiler/check-assembly.sh
+10
-3
No files found.
tests/tests-c-compiler/check-assembly.sh
View file @
7b04d793
...
@@ -40,6 +40,13 @@ fi
...
@@ -40,6 +40,13 @@ fi
args
=
$(
echo
"
$source_short
"
|
sed
-E
-e
's/\.c+$//'
)
args
=
$(
echo
"
$source_short
"
|
sed
-E
-e
's/\.c+$//'
)
source_obj
=
$(
echo
"
$source_short
"
|
sed
-E
-e
's/\.c+$/.o/'
)
source_obj
=
$(
echo
"
$source_short
"
|
sed
-E
-e
's/\.c+$/.o/'
)
ext
=
$(
echo
"
$source_short
"
|
sed
-E
-e
's/.*\.(c+)$/\1/'
)
if
[
"
$ext
"
=
"cc"
]
;
then
COMPILER
=
'$(CXX) $(CXX_CFLAGS)'
else
COMPILER
=
'$(CC)'
fi
OFS
=
$IFS
OFS
=
$IFS
IFS
=
"."
IFS
=
"."
...
@@ -88,7 +95,7 @@ all: compiled-module
...
@@ -88,7 +95,7 @@ all: compiled-module
check-executable:
\$
(OBJS)
check-executable:
\$
(OBJS)
@rm -f *.core
@rm -f *.core
\$
(CC)
\$
(CFLAGS)
\$
(LDFLAGS) -o check-executable
\$
(OBJS) -lm
${
COMPILER
}
\$
(CFLAGS)
\$
(LDFLAGS) -o check-executable
\$
(OBJS) -lm
# Compile the corresponding .asn1 spec.
# Compile the corresponding .asn1 spec.
compiled-module:
${
asn_module
}
${
abs_top_builddir
}
/asn1c/asn1c
compiled-module:
${
asn_module
}
${
abs_top_builddir
}
/asn1c/asn1c
...
@@ -113,8 +120,8 @@ else
...
@@ -113,8 +120,8 @@ else
cat
<<
TARGETS
>> "
${
testdir
}
/Makefile.targets"
cat
<<
TARGETS
>> "
${
testdir
}
/Makefile.targets"
check-fuzzer:
\$
(OBJS)
check-fuzzer:
\$
(OBJS)
rm -f
${
source_obj
}
rm -f
${
source_obj
}
\$
(CC)
\$
(CFLAGS)
\$
(LIBFUZZER_CFLAGS) -c -o
${
source_obj
}
${
source_short
}
${
COMPILER
}
\$
(CFLAGS)
\$
(LIBFUZZER_CFLAGS) -c -o
${
source_obj
}
${
source_short
}
\$
(CC)
\$
(CFLAGS)
\$
(LIBFUZZER_CFLAGS)
\$
(LDFLAGS) -o check-fuzzer
\$
(OBJS)
${
COMPILER
}
\$
(CFLAGS)
\$
(LIBFUZZER_CFLAGS)
\$
(LDFLAGS) -o check-fuzzer
\$
(OBJS)
rm -f
${
source_obj
}
rm -f
${
source_obj
}
TARGETS
TARGETS
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment