Code Monkey home page Code Monkey logo

Comments (5)

danluu avatar danluu commented on May 26, 2024

Part of this is that we should have a version of the build that runs clang's asan, msan, etc., which we're not doing now.

from nativejit.

danluu avatar danluu commented on May 26, 2024

For clang asan, msan, etc., this link looks helpful.

from nativejit.

danluu avatar danluu commented on May 26, 2024

The following options work (independently) to enable clang's sanitizers:

add_compile_options("-fsanitize=memory")
add_compile_options("-lubsan -fsanitize=undefined")
add_compile_options("-lasan -fsanitize=address")
add_compile_options("-ltsan -fsanitize=thread")

I'll add these at some point, but before I make that change I want to change how we add flags and define targets so that we can have a reasonable set of targets to build against. Our current setup is predicated re-running CMake to change options, which is pretty messy and also annoying enough that people probably won't run all of these things before checking in.

from nativejit.

danluu avatar danluu commented on May 26, 2024

Those options work for NativeJIT, but the linker stuff fails with BitFunnel. Apparently, we're doing something different for the two projects?

When trying to build with thread sanitizer, BitFunnel fails with

clang: error: -ltsan -fsanitize=thread: 'linker' input unused

We can't just remove ltsan since thread sanitizer won't get linked correctly and will fail at the link stage.

from nativejit.

danluu avatar danluu commented on May 26, 2024

We should enforce some kind of style with ClangFormat. @MikeHopcroft , let's discuss the particulars of what will be enforced when I'm back in town.

from nativejit.

Related Issues (20)

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.