From ea7ab3e7b93bdd6085b916e98811c2c1c83d703d Mon Sep 17 00:00:00 2001 From: midipix Date: Feb 23 2019 15:08:46 +0000 Subject: project: custom config: asm tests must invoke cfgtest_code_snippet_asm. --- diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index f656f49..4b5fab9 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -200,7 +200,7 @@ cfgdefs_perform_common_tests() mb_code_snippet="$mb_code_snippet "'{__asm__ __volatile__ ("fnstcw pcw");' mb_code_snippet="$mb_code_snippet "' __asm__ __volatile__ ("fldcw pcw");}' - if cfgtest_code_snippet "$mb_code_snippet"; then + if cfgtest_code_snippet_asm "$mb_code_snippet"; then cfgtest_cflags_append '-DHAVE_GCC_ASM_FOR_X87' fi @@ -209,7 +209,7 @@ cfgdefs_perform_common_tests() mb_code_snippet="$mb_code_snippet "'void fn(void)' mb_code_snippet="$mb_code_snippet "'{__asm__ __volatile__ ("callq *%rax");}' - if cfgtest_code_snippet "$mb_code_snippet"; then + if cfgtest_code_snippet_asm "$mb_code_snippet"; then cfgtest_cflags_append '-DHAVE_GCC_ASM_FOR_X64' fi