Skip to contentSkip to conversation

package/pcre2: jit needs threads

PATCH New Fabrice Fontaine 2 participants 2 messages Apr 16, 2019 – Apr 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pcre2: jit needs threads

Add a BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS to be able to use it in the comment

Fixes:
- http://autobuild.buildroot.org/results/547be5264effaf27c7f85ece88c5f5f792abd910

---
 package/pcre2/Config.in | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
package/pcre2/Config.in +15 -3
index 007dd960c6..f35877f376 100644
@@ -23,12 +23,24 @@ config BR2_PACKAGE_PCRE2_32
 	  This option builds the 32-bits pcre2 library, i.e
 	  'libpcre2-32'
 
+config BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
+	bool
+	default y if BR2_aarch64
+	default y if BR2_arm || BR2_armeb
+	default y if BR2_i386 || BR2_x86_64
+	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
+	default y if BR2_powerpc
+	default y if BR2_sparc
+
 config BR2_PACKAGE_PCRE2_JIT
 	bool "enable JIT support"
-	depends on BR2_i386 || BR2_x86_64 || BR2_arm  || BR2_armeb || \
-		BR2_aarch64 || BR2_mips || BR2_mipsel || \
-		BR2_mips64 || BR2_mips64el || BR2_powerpc || BR2_sparc
+	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  This option enables JIT support
 
+comment "JIT support needs a toolchain w/ threads"
+	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
 endif
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/pcre2: jit needs threads

Quoted 10 lines · On Tue, 16 Apr 2019 17:29:15 +0200 Fabrice Fontaine…

Add a BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS to be able to use it in the comment

Fixes:
- http://autobuild.buildroot.org/results/547be5264effaf27c7f85ece88c5f5f792abd910

---
 package/pcre2/Config.in | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com