Skip to content

Commit

Permalink
Added -Wno-error=comment to CXXFLAGS
Browse files Browse the repository at this point in the history
This prevents gcc from throwing an error when including MLIR
header files.
  • Loading branch information
sjalander committed Nov 29, 2023
1 parent cfa0b03 commit 3a2fdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MLIR_ROOT = $(JLM_ROOT)/lib/mlir-rvsdg/

# -gdwarf-4 is used since the valgrind version in Ubuntu 22.04 doesn't support dwarf-5,
# which is produced by default by clang-14
CXXFLAGS += --std=c++17 -Wall -Wpedantic -Wextra -Wno-unused-parameter -Werror -Wfatal-errors -gdwarf-4 -I$(MLIR_ROOT)/include -I$(MLIR_ROOT)/include
CXXFLAGS += --std=c++17 -Wall -Wpedantic -Wno-error=comment -Wextra -Wno-unused-parameter -Werror -Wfatal-errors -gdwarf-4 -I$(MLIR_ROOT)/include -I$(MLIR_ROOT)/include
CXXFLAGS_DEBUG += -g -DJLM_DEBUG -DJLM_ENABLE_ASSERTS

$(JLM_BUILD)/%.la: $(JLM_ROOT)/%.cpp
Expand Down

0 comments on commit 3a2fdd6

Please sign in to comment.