aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-01-06 18:14:34 +0100
committerThomas Preud'homme <robotux@celest.fr>2012-01-06 18:34:21 +0100
commit519a9040a16f86a7b309accf1cb54ed64d2f921f (patch)
treec470768fe6bf854f0ac950bb4dc08b7b270788a5 /tccasm.c
parent83d57c06f406bbb7198b1683fc522f23251b5f57 (diff)
downloadtinycc-519a9040a16f86a7b309accf1cb54ed64d2f921f.tar.gz
tinycc-519a9040a16f86a7b309accf1cb54ed64d2f921f.tar.bz2
Compile tccasm.c conditionally (TCC_CONFIG_ASM)
Only compile the content of tccasm.c if inline assembly is supported for this architecture by testing the presence of macro TCC_CONFIG_ASM.
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccasm.c b/tccasm.c
index 527c006..d1d2af1 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -19,6 +19,7 @@
*/
#include "tcc.h"
+#ifdef CONFIG_TCC_ASM
ST_FUNC int asm_get_local_label_name(TCCState *s1, unsigned int n)
{
@@ -1115,3 +1116,4 @@ ST_FUNC void asm_global_instr(void)
cstr_free(&astr);
}
+#endif /* CONFIG_TCC_ASM */