Skip to content

Commit

Permalink
fix julia_asserts to depend only on julia build mode (#41482)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored Jul 21, 2021
1 parent b2e78ec commit 55a873e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/ccall.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

// --- the ccall, cglobal, and llvm intrinsics ---
#include "llvm/Support/Path.h" // for llvm::sys::path
#include <llvm/Bitcode/BitcodeReader.h>
#include <llvm/Linker/Linker.h>

#ifdef _OS_WINDOWS_
extern const char jl_crtdll_basename[];
Expand Down
4 changes: 4 additions & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
#endif
#include <llvm/Target/TargetMachine.h>

#include "llvm/Support/Path.h" // for llvm::sys::path
#include <llvm/Bitcode/BitcodeReader.h>
#include <llvm/Linker/Linker.h>

using namespace llvm;

typedef Instruction TerminatorInst;
Expand Down
7 changes: 5 additions & 2 deletions src/julia_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
# endif
#else
# ifdef JL_NDEBUG
# undef JL_NDEBUG
# define NDEBUG
# include <assert.h>
# undef NDEBUG
# else
# include <assert.h>
# endif
# include <assert.h>
#endif

0 comments on commit 55a873e

Please sign in to comment.