Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
455cb823
Commit
455cb823
authored
Apr 28, 2021
by
Maxime Perrotin
Browse files
Fix C++ support in RPI
parent
90ab2e99
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/concurrency_view/c_pohi_gpr/partition.tmplt
View file @
455cb823
...
...
@@ -143,7 +143,6 @@ project @_CAPITALIZE:Name_@ is
"-ffunction-sections"
,
"-fdiagnostics-color=always"
,
"-Wno-cast-function-type"
,
"-Wmissing-prototypes"
,
@@
IF
@@
@
_Coverage_
@
"-fprofile-arcs"
,
"-ftest-coverage"
,
...
...
@@ -164,7 +163,7 @@ project @_CAPITALIZE:Name_@ is
case
Build
is
when
"Release"
=>
for
Default_Switches
(
"C"
)
use
Common_C_Switches
&
(
"-O2"
,
"-DNDEBUG"
);
for
Default_Switches
(
"C"
)
use
Common_C_Switches
&
(
"-O2"
,
"-DNDEBUG"
,
"-Wmissing-prototypes"
);
for
Default_Switches
(
"C++"
)
use
Common_C_Switches
&
(
"-O2"
,
"-DNDEBUG"
);
for
Default_Switches
(
"Ada"
)
use
Common_Ada_Switches
&
(
"-O2"
,
"-DNDEBUG"
);
when
"Debug"
=>
...
...
@@ -185,6 +184,7 @@ project @_CAPITALIZE:Name_@ is
"-lm"
,
@@
IF
@@
@
_CPU_Platform_
@
=
PLATFORM_RPI
"-lgnat"
,
"-lstdc++"
,
@@
END_IF
@@
@@
IF
@@
@
_Coverage_
@
"-fprofile-arcs"
,
...
...
templates/concurrency_view/rpi_cgpr/partition.tmplt
View file @
455cb823
...
...
@@ -116,8 +116,8 @@ configuration project Raspberry_PI is
for
Export_File_Switch
use
"-Wl,--version-script="
;
for
Map_File_Option
use
"-Wl,-Map,"
;
for
Default_Switches
(
"C"
)
use
Common_C_Linker_Switches
;
for
Default_Switches
(
"C++"
)
use
Common_C_Linker_Switches
;
for
Default_Switches
(
"Ada"
)
use
(
"-pipe"
,
"-g"
,
"-lm"
);
for
Default_Switches
(
"C++"
)
use
Common_C_Linker_Switches
&
(
"-lstdc++"
)
;
for
Default_Switches
(
"Ada"
)
use
(
"-pipe"
,
"-g"
,
"-lm"
,
"-lgnat"
);
end
Linker
;
package
Clean
is
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment