Giter Site home page Giter Site logo

CFLAGS etc. about lua-aho-corasick HOT 8 CLOSED

cloudflare avatar cloudflare commented on July 17, 2024
CFLAGS etc.

from lua-aho-corasick.

Comments (8)

jdesgats avatar jdesgats commented on July 17, 2024 1

You are right, we should not hard-code CPU-specific compile flags (being amd64 or ARM). I guess that a proper configure script or cmake file could detect them automatically, but we don't have that so far so your PR is the best way forward.

Sorry again, I ogt busy on many other things and I needed to check where this module is used in our internal repos in order to not have any regressions.

from lua-aho-corasick.

vcunat avatar vcunat commented on July 17, 2024

There are also other weird things I see, e.g. passing CFLAGS to c++ compiler, etc. so I'd probably look at these as well.

from lua-aho-corasick.

vcunat avatar vcunat commented on July 17, 2024

OK, I created some implementation instead of just talking: #13

from lua-aho-corasick.

pspacek avatar pspacek commented on July 17, 2024

@vavrusa Could you please poke someone to get fixes merged? Thanks!

from lua-aho-corasick.

vcunat avatar vcunat commented on July 17, 2024

Or just get some "authoritative" opinion; it's not a big deal for us to maintain a fork, but it would seem better if we can agree on one common version.

from lua-aho-corasick.

jdesgats avatar jdesgats commented on July 17, 2024

Hey, sorry for the late answer. It turns out we already fixed this issue internally, I pushed the corresponding patches in #14

from lua-aho-corasick.

vcunat avatar vcunat commented on July 17, 2024

Well, this is a misunderstanding between us – my concern was that by default the code should work on any CPU of the given architecture. Old example: x86_64 does not guarantee sse4.1; new example: aarch64 does not guarantee the CRC instructions. I actually suspect that our device which already runs this code doesn't have CRC, but I've been primarily concerned about compatibility from the point of view of generic packaging for unix-like systems.

from lua-aho-corasick.

jdesgats avatar jdesgats commented on July 17, 2024

Solved by merging #13.

from lua-aho-corasick.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.