Answer the question
In order to leave comments, you need to log in
Using compile-fail rule in boost build?
I want to use the "compile-fail" rule to check if some of the compile-time checks are correct, but there are some side effects that I don't know how to overcome.
Minimal example:
Jamfile.jam
import testing ;
compile-fail compile/1.cpp ;
not_the_code_to_be_compiled
gcc.compile.c++ .build/test/1.test/gcc-4.7/release/1.o
test/compile/1.cpp:1:1: error: ‘not_the_code_to_be_compiled’ does not name a type
(failed-as-expected) .build/test/1.test/gcc-4.7/release/1.o
**passed** .build/test/1.test/gcc-4.7/release/1.test
...updated 3 targets...
gcc.compile.c++ .build/test/1.test/gcc-4.7/release/1.o
(failed-as-expected) .build/test/1.test/gcc-4.7/release/1.o
**passed** .build/test/1.test/gcc-4.7/release/1.test
...updated 3 targets...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question