[LINKER] Add single underscore to all definitions, no -D for dashed param.
This makes possibility for the script to append the definitions to CFLAGS and LDFLAGS, and with the feature of disabling of -D prependation it will make possible to generate ARCH_FLAGS generic to each specific chip.
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
ea589b9a4e
commit
d15a0e63fe
1
ld/tests/dash.data
Normal file
1
ld/tests/dash.data
Normal file
@@ -0,0 +1 @@
|
||||
dash END A B C D -mcpu=cortex-m0
|
||||
1
ld/tests/dash.result
Normal file
1
ld/tests/dash.result
Normal file
@@ -0,0 +1 @@
|
||||
-D_A -D_B -D_C -D_D -mcpu=cortex-m0
|
||||
@@ -1 +1 @@
|
||||
-DA=parameter -DB=parameter -DC=parameter -DD=parameter -DE==parameter -DF=parameter -DG=parameter
|
||||
-D_A=parameter -D_B=parameter -D_C=parameter -D_D=parameter -D_E==parameter -D_F=parameter -D_G=parameter
|
||||
@@ -1 +1 @@
|
||||
-DA -DB -DC -DD
|
||||
-D_A -D_B -D_C -D_D
|
||||
@@ -1 +1 @@
|
||||
-DA -DB -DC -DD -DE -DF
|
||||
-D_A -D_B -D_C -D_D -D_E -D_F
|
||||
@@ -1 +1 @@
|
||||
-DA -DB -DC -DD -DE -DF
|
||||
-D_A -D_B -D_C -D_D -D_E -D_F
|
||||
@@ -1 +1 @@
|
||||
-DA -DB -DC -DD -DE -DF
|
||||
-D_A -D_B -D_C -D_D -D_E -D_F
|
||||
Reference in New Issue
Block a user