Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion opts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ $(eval $(call FIXZERODEPS,$(shell find deps/ -size 0 -printf "%P ")))
FIXINC ?= -isystem /usr/include/pd/fixinclude

CPPFLAGS = \
$(FIXINC) -D_GNU_SOURCE=1 $(CPPDEFS) -Wundef
$(FIXINC) -D_GNU_SOURCE=1 -DPACKAGE='"phantom"' \
-DPACKAGE_VERSION='"$(shell sed -n -e '1s/.*(\(.*\)).*/\1/p' debian/changelog)"' $(CPPDEFS) -Wundef

DEPS = \
-MD -MF deps/$(subst /,%,$(@)).d
Expand Down
10 changes: 10 additions & 0 deletions test/bq/align.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* compile it with '-O2' to see the effect
*/

#if defined(__x86_64__)

#ifndef __OPTIMIZE__
#error not interested without otimisation
#endif
Expand Down Expand Up @@ -58,3 +60,11 @@ extern "C" int main() {

return 0;
}

#else

extern "C" int main() {
return 0;
}

#endif